Q001<$X, $Y, $Z> :-
	triple($X, $Y, $Z);

Q002<$X, $Y> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>),
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#datatypeField>, $Y);

Q003<$X> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q004<$X> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Book>),
	triple($X, <http://purl.org/dc/elements/1.1/publisher>, "Springer");

Q005<$Y, $Z> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://xmlns.com/foaf/0.1/Person>),
	triple($X, <http://xmlns.com/foaf/0.1/name>, $Y),
	triple($X, <http://xmlns.com/foaf/0.1/homepage>, $Z);

Q006<$Y, $U, $T> :-
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#datatypeField>, "Algorithmica"),
	triple($X, <http://purl.org/dc/elements/1.1/title>, $Y),
	triple($X, <http://purl.org/dc/elements/1.1/creator>, $U),
	triple($X, <http://purl.org/dc/elements/1.1/date>, $T);

Q007<$Y, $U, $T> :-
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#objectField>, "Algorithmica"),
	triple($X, <http://purl.org/dc/elements/1.1/title>, $Y),
	triple($X, <http://purl.org/dc/elements/1.1/creator>, $U),
	triple($X, <http://purl.org/dc/elements/1.1/date>, $T);

Q008<$U, $Z> :-
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#editor>, $Y),
	triple($Y, <http://xmlns.com/foaf/0.1/name>, $Z),
	triple($X, <http://purl.org/dc/elements/1.1/title>, $U),
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#datatypeField>, $V),
	triple($X, <http://purl.org/dc/elements/1.1/publisher>, "Springer");

Q009<$U, $Z> :-
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#editor>, $Y),
	triple($Y, <http://xmlns.com/foaf/0.1/name>, $Z),
	triple($X, <http://purl.org/dc/elements/1.1/title>, $U),
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#objectField>, $V),
	triple($X, <http://purl.org/dc/elements/1.1/publisher>, "Springer");

Q010<$T, $N, $M> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>),
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#editor>, $Y),
	triple($X, <http://purl.org/dc/elements/1.1/creator>, $Z),
	triple($Y, <http://xmlns.com/foaf/0.1/name>, $N),
	triple($Z, <http://xmlns.com/foaf/0.1/name>, $M),
	triple($X, <http://purl.org/dc/elements/1.1/title>, $T),
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#objectField>, $U);

Q011<$title, $year, $journal, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "Alison Cawsey"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, $journal),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q012<$title, $year, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "Hugh Darwen"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, "SIGMOD Record"),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q013<$title, $journal, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "Dana Randall"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, "2006"),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, $journal),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q014<$name, $title, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, $name),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, "1966"),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, "Information and Control"),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q015<$title, $year, $journal, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "Alison Cawsey"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, $journal),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Article>);

Q016<$title, $year, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "Hugh Darwen"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, "SIGMOD Record"),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Article>);

Q017<$title, $journal, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "Dana Randall"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, "2006"),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, $journal),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Article>);

Q018<$name, $title, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, $name),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, "1966"),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, "Information and Control"),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Article>);

Q019<$name, $title, $booktitle, $publisher, $pages> :-
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, $name),
	triple($book, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, "1991"),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#booktitle>, $booktitle),
	triple($book, <http://purl.org/dc/elements/1.1/publisher>, $publisher),
	triple($book, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q020<$title, $year, $publisher, $pages> :-
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "William J. Frawley"),
	triple($book, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#booktitle>, "Knowledge Discovery in Databases"),
	triple($book, <http://purl.org/dc/elements/1.1/publisher>, $publisher),
	triple($book, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q021<$name, $title, $booktitle, $publisher, $pages> :-
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, $name),
	triple($book, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, "1991"),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#booktitle>, $booktitle),
	triple($book, <http://purl.org/dc/elements/1.1/publisher>, $publisher),
	triple($book, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Book>);

Q022<$title, $year, $publisher, $pages> :-
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author),
	triple($author, <http://xmlns.com/foaf/0.1/name>, "William J. Frawley"),
	triple($book, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#booktitle>, "Knowledge Discovery in Databases"),
	triple($book, <http://purl.org/dc/elements/1.1/publisher>, $publisher),
	triple($book, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Book>);

Q023<$title, $year, $journal, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author1),
	triple($author1, <http://xmlns.com/foaf/0.1/name>, "Grzegorz Rozenberg"),
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author2),
	triple($author2, <http://xmlns.com/foaf/0.1/name>, "Azriel Rosenfeld"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, $journal),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q024<$title, $year, $journal, $pages> :-
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author1),
	triple($author1, <http://xmlns.com/foaf/0.1/name>, "Grzegorz Rozenberg"),
	triple($paper, <http://purl.org/dc/elements/1.1/creator>, $author2),
	triple($author2, <http://xmlns.com/foaf/0.1/name>, "Azriel Rosenfeld"),
	triple($paper, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($paper, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#journal>, $journal),
	triple($paper, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Article>);

Q025<$title, $year, $booktitle, $publisher, $pages> :-
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author1),
	triple($author1, <http://xmlns.com/foaf/0.1/name>, "Christopher J. Matheus"),
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author2),
	triple($author2, <http://xmlns.com/foaf/0.1/name>, "William J. Frawley"),
	triple($book, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#booktitle>, $booktitle),
	triple($book, <http://purl.org/dc/elements/1.1/publisher>, $publisher),
	triple($book, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q026<$title, $year, $booktitle, $publisher, $pages> :-
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author1),
	triple($author1, <http://xmlns.com/foaf/0.1/name>, "Christopher J. Matheus"),
	triple($book, <http://purl.org/dc/elements/1.1/creator>, $author2),
	triple($author2, <http://xmlns.com/foaf/0.1/name>, "William J. Frawley"),
	triple($book, <http://purl.org/dc/elements/1.1/title>, $title),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#year>, $year),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#pages>, $pages),
	triple($book, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#booktitle>, $booktitle),
	triple($book, <http://purl.org/dc/elements/1.1/publisher>, $publisher),
	triple($book, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Book>);
	
Q027<$X, $V> :-
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#datatypeField>, $V),
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);
	
Q028<$X> :-
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#datatypeField>, $V),
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q029<$X> :- 
	triple($X,<http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#isbn>,$FV_1),
	triple($X,<http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#address>,$V);

Q030<$X> :- 
	triple($X,<http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#address>,$FV_1),
	triple($X,<http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#isbn>,$V);

Q031<$X, $Y> :- 
	triple($X,<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>,$Y);
	
Q032<$X> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>);

Q033<$X> :-
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#objectField>, "Algorithmica");

Q034<$X> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>),
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#objectField>, "Algorithmica");
	
Q035<$X, $Y> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, $Y);
	
Q036<$X> :-
	triple($X, <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#Document>),
	triple($X, <http://sw.deri.org/~aharth/2004/07/dblp/dblp.owl#objectField>, $U);
	