Simple Question (Direct)
Simple Question
Q6183862
P39
Q12737077
USER
What was the position for which Jerry Kearns was appointed ?
(Q6183862,P39,c(Q12737077))
action filter_type
action find
entity Q6183862
relation P39
type Q12737077
['Q6183862', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6183862 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Jerry Kearns
action filter_type
action find
entity Jerry Kearns
relation position held
type occupation
['Jerry Kearns', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Jerry_Kearns property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q17486706
SYSTEM
member of the Iowa House of Representatives
Q17486706
(Q6183862,P39,c(Q12737077))
action filter_type
action find
entity Q6183862
relation P39
type Q12737077
The [ANSWER]
['Q6183862', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6183862 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
member of the Iowa House of Representatives
The member of the Iowa House of Representatives
member of the Iowa House of Representatives
action filter_type
action find
entity Jerry Kearns
relation position held
type occupation
['Jerry Kearns', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Jerry_Kearns property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6183862
P106
Q12737077
USER
Which occupation is the profession of Jerry Kearns ?
(Q6183862,P106,c(Q12737077))
action filter_type
action find
entity Q6183862
relation P106
type Q12737077
['Q6183862', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6183862 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Jerry Kearns
action filter_type
action find
entity Jerry Kearns
relation occupation
type occupation
['Jerry Kearns', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Jerry_Kearns property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6183862,P106,c(Q12737077))
action filter_type
action find
entity Q6183862
relation P106
type Q12737077
The [ANSWER] is the profession of Jerry Kearns
['Q6183862', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6183862 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
politician
The politician is the profession of Jerry Kearns
politician
action filter_type
action find
entity Jerry Kearns
relation occupation
type occupation
['Jerry Kearns', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Jerry_Kearns property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q4831819
P106
Q502895
USER
Does Ayumi Kurashima have a job as that occupation ?
(Q4831819,P106,Q82955)
action is_in
entity Q4831819
action find
entity Q82955
relation P106
['Q4831819', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q4831819 }
politician Ayumi Kurashima
action is_in
entity Ayumi Kurashima
action find
entity politician
relation occupation
['Ayumi Kurashima', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Ayumi_Kurashima }
[]
common name
SYSTEM
NO
(Q4831819,P106,Q82955)
action is_in
entity Q4831819
action find
entity Q82955
relation P106
[ANSWER]
['Q4831819', 'P106', 'Q82955']
ASK WHERE { resource:Q82955 property:P106 resource:Q4831819 }
No
action is_in
entity Ayumi Kurashima
action find
entity politician
relation occupation
['Ayumi Kurashima', 'occupation', 'politician']
ASK WHERE { resource:politician property:occupation resource:Ayumi_Kurashima }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q17486706 Q7838918 Q30
P17
Q15617994
USER
Is member of the Iowa House of Representatives situated in Trevanger and United States of America ?
(Q17486706,P17,Q7838918) (Q17486706,P17,Q30)
action is_in
entity Q17486706
action intersection
action find_reverse
entity Q7838918
relation P17
action find_reverse
entity Q30
relation P17
['Q17486706', 'P17', 'Q7838918'] ['Q17486706', 'P17', 'Q30']
ASK WHERE { resource:Q17486706 property:P17 resource:Q7838918 . resource:Q17486706 property:P17 resource:Q30 }
member of the Iowa House of Representatives Trevanger United States of America
action is_in
entity member of the Iowa House of Representatives
action intersection
action find_reverse
entity Trevanger
relation country
action find_reverse
entity United States of America
relation country
['member of the Iowa House of Representatives', 'country', 'Trevanger'] ['member of the Iowa House of Representatives', 'country', 'United States of America']
ASK WHERE { resource:member_of_the_Iowa_House_of_Representatives property:country resource:Trevanger . resource:member_of_the_Iowa_House_of_Representatives property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q17486706,P17,Q7838918) (Q17486706,P17,Q30)
action is_in
entity Q17486706
action intersection
action find_reverse
entity Q7838918
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q17486706', 'P17', 'Q7838918'] ['Q17486706', 'P17', 'Q30']
ASK WHERE { resource:Q17486706 property:P17 resource:Q7838918 . resource:Q17486706 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity member of the Iowa House of Representatives
action intersection
action find_reverse
entity Trevanger
relation country
action find_reverse
entity United States of America
relation country
['member of the Iowa House of Representatives', 'country', 'Trevanger'] ['member of the Iowa House of Representatives', 'country', 'United States of America']
ASK WHERE { resource:member_of_the_Iowa_House_of_Representatives property:country resource:Trevanger . resource:member_of_the_Iowa_House_of_Representatives property:country resource:United_States_of_America }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q82955
P921
Q223393 Q2342494
USER
How many literary genres or collectables have politician as their main topic ?
(c(Q223393),P921,Q82955) (c(Q2342494),P921,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:P921 resource:Q82955 . ?y rdf:type ontology:Q223393 } UNION { ?y property:P921 resource:Q82955 . ?y rdf:type ontology:Q2342494 } }
politician
action count
action union
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:main_subject resource:politician . ?y rdf:type ontology:literary_genre } UNION { ?y property:main_subject resource:politician . ?y rdf:type ontology:collectable } }
[]
literary genre collectable
SYSTEM
2
Q21815179 Q21601944
(c(Q223393),P921,Q82955) (c(Q2342494),P921,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[ANSWER]
[{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:P921 resource:Q82955 . ?y rdf:type ontology:Q223393 } UNION { ?y property:P921 resource:Q82955 . ?y rdf:type ontology:Q2342494 } }
worldstatesmen Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
2
action count
action union
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:main_subject resource:politician . ?y rdf:type ontology:literary_genre } UNION { ?y property:main_subject resource:politician . ?y rdf:type ontology:collectable } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17486706 Q203184
P39
Q502895
USER
How many people were responsible for occupying the position of member of the Iowa House of Representatives or First Lady ?
(c(Q502895),P39,Q17486706) (c(Q502895),P39,Q203184)
action count
action union
action filter_type
action find_reverse
entity Q17486706
relation P39
type Q502895
action filter_type
action find_reverse
entity Q203184
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q17486706'] [{'concept': 'Q502895'}, 'P39', 'Q203184']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P39 ?v . VALUES ( ?v ) { ( resource:Q17486706 ) ( resource:Q203184 ) } }
member of the Iowa House of Representatives First Lady
action count
action union
action filter_type
action find_reverse
entity member of the Iowa House of Representatives
relation position held
type common name
action filter_type
action find_reverse
entity First Lady
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'member of the Iowa House of Representatives'] [{'concept': 'common name'}, 'position held', 'First Lady']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:position_held ?v . VALUES ( ?v ) { ( resource:member_of_the_Iowa_House_of_Representatives ) ( resource:First_Lady ) } }
[]
common name
SYSTEM
313
Q6196501 Q7225782 Q4898795 Q772997 Q40649 Q4933069 Q1452241 Q4710416 Q4933065 Q1436443 Q13392497 Q5106750 Q5235544 Q4897657 Q6113466 Q7184572 Q7154359 Q6847855 Q5044674 Q6775314 Q1966707 Q2544863 Q1148917 Q671930 Q1308553 Q7964073 Q6409244 Q15992909 Q7343717 Q16887094 Q16151975 Q6391901 Q5230001 Q6483425 Q7028091 Q6130775 Q5043685 Q5538928 Q5300938 Q5101472 Q5126586 Q6112183 Q13537745 Q2156811 Q5387235 Q1394924 Q7970464 Q5289541 Q5115720 Q6303690 Q7149302 Q7983776 Q4932648 Q1620121 Q2427815 Q5353166 Q2579829 Q5235693 Q6112988 Q7964054 Q5074803 Q2580440 Q13533334 Q16145415 Q7925418 Q18631951 Q7331624 Q933964 Q6767300 Q7103096 Q7298334 Q5388620 Q5258686 Q16875191 Q5242491 Q886018 Q8007916 Q1160610 Q6846381 Q5605689 Q6394483 Q884377 Q16031294 Q4888536 Q1564917 Q5622649 Q7364002 Q14245641 Q5296851 Q5214249 Q7313011 Q5258203 Q7287755 Q6769774 Q6535466 Q4797088 Q1581134 Q16204911 Q6384612 Q6848518 Q6181953 Q596010 Q4964797 Q7363655 Q6801905 Q7153584 Q1765336 Q6231727 Q6780181 Q6552025 Q4910778 Q19276671 Q7375196 Q2036822 Q7339219 Q16186323 Q5297951 Q8010532 Q231637 Q6513860 Q5079306 Q13414799 Q16225861 Q16205362 Q1559485 Q16875264 Q6540434 Q7288244 Q6396889 Q7359094 Q889369 Q16886048 Q6447079 Q7490196 Q17486414 Q5120614 Q17486412 Q7323165 Q7323164 Q1551859 Q1491607 Q4977691 Q7359002 Q5526199 Q1292996 Q5113110 Q4701476 Q12071701 Q7615108 Q5317971 Q5543672 Q6768442 Q6212005 Q20017020 Q6789540 Q7794215 Q529294 Q6174211 Q1873399 Q1507815 Q435937 Q5318141 Q6086752 Q7143493 Q12059970 Q5393746 Q4758880 Q1883379 Q7128944 Q27027174 Q7614237 Q6756357 Q7610330 Q7654038 Q4786229 Q15993393 Q7225797 Q5232875 Q6134859 Q5228929 Q1017109 Q5478968 Q16732529 Q5056049 Q5106763 Q1909234 Q5273439 Q5239663 Q6380195 Q7681212 Q5004357 Q282315 Q7817460 Q5702840 Q373094 Q5129001 Q1524034 Q1699063 Q6163440 Q12065683 Q7817961 Q7613015 Q6133640 Q1699940 Q5567884 Q1124603 Q5115483 Q6204376 Q6213454 Q7436992 Q7382867 Q4769121 Q6490741 Q7350204 Q7369570 Q6257250 Q6780267 Q5131130 Q6138590 Q7817495 Q7340213 Q39609 Q1543274 Q6531914 Q5334792 Q1063473 Q1708564 Q6212283 Q953196 Q6243540 Q5531211 Q1825711 Q18761873 Q6416114 Q12071919 Q12071916 Q1904638 Q2156808 Q1565863 Q1677124 Q6288735 Q6262112 Q1302427 Q7976238 Q6509510 Q6778883 Q6830814 Q7817384 Q13426342 Q5729697 Q1282357 Q5258288 Q16062187 Q12057947 Q7615832 Q7356343 Q4785329 Q366115 Q6263765 Q6969303 Q5729660 Q6819766 Q1325278 Q9067599 Q16221379 Q7945779 Q18707090 Q7693937 Q7860106 Q14847263 Q720251 Q4965085 Q5213785 Q1551941 Q15999121 Q6969419 Q376332 Q6183862 Q6198666 Q6174308 Q6174995 Q7437093 Q206191 Q785622 Q6779619 Q5359461 Q886138 Q367650 Q5550816 Q5214070 Q13562308 Q5727411 Q16212271 Q13562307 Q6435845 Q7188631 Q1048417 Q7614991 Q6767161 Q3639110 Q1414377 Q6551841 Q7417265 Q6766829 Q7812667 Q12058363 Q5228665 Q5115579 Q5213721 Q786382 Q19850809 Q5129517 Q5320349
(c(Q502895),P39,Q17486706) (c(Q502895),P39,Q203184)
action count
action union
action filter_type
action find_reverse
entity Q17486706
relation P39
type Q502895
action filter_type
action find_reverse
entity Q203184
relation P39
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q17486706'] [{'concept': 'Q502895'}, 'P39', 'Q203184']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P39 ?v . VALUES ( ?v ) { ( resource:Q17486706 ) ( resource:Q203184 ) } }
Jim Lykam Polly Bukta Betty De Boef Frank Merriam Cristina Fernández de Kirchner Bob Kressig Fred C. Gilchrist Albert Hansen Bob Krause Fred Schwengel Deborah Berry Chris Hagenow David Jacoby Beth Wessel-Kroeschell Jack Kibbie Philip Wise Paul Wilderdyke Mike May Carole Crist Martin Donald Van Oosterhout Nathaniel B. Baker Walter I. Hayes Cyrus C. Carpenter Mehriban Aliyeva Leo Hoegh Walt Tomenga Kim Pearson Marv Diemer Robert Dvorsky Mary Wolfe Brent Siegrist Kent Sorenson Dave Tjepkes Lance Horbach Nick Wagner James C. Milliman Carmine Boal George Eichhorn Doug Struyk Chip Baltimore Clarence Hoffman Jack Drake Wally Horn Robert D. Fulton Eric Palmer John F. Lacey Warren S. Dungan Dolores Mertz Chuck Soderberg Judith Steinberg Dean Paul Bell Wes Whitead Bob Hager Hiram Kinsman Evans Thomas Updegraff Elaine Baxter William M. Stone David Johnson Jack Hatch Walt Rogers Charles A. Bishop William S. Beardsley Lisa Heddens John Landon Vicki Lensing Kenneth Veenstra Rick Olson Earl W. Vincent Mark Davitt Orlando H. Manning Ray Zirkelbach Erik Helland Dennis Mahony Patti Ruff Dawn Pettengill Bourke B. Hickenlooper William Dotzler Daniel F. Miller Mike Connolly Greg Heartsill Kerry Burt John H. Gear Henry Thomas Reed Benjamin F. Gue William L. Harding Guy Vander Linden Ron Jorgensen Pat Murphy Donovan Olson Dan Rasmussen Renee Schulte Dennis Black Ralph Klemme Mark Smith Levi M. Hubbell Art Staed William George Thompson Peter Cownie Keith Kreiman Mike Reasoner Jeremy Taylor William E. Fuller Brian Moore Ron Corbett McKinley Bailey Paul Shomshor Marsena E. Cutts John Ely Mary Lundby Linda Upmeyer Bill Schickel John Kooiker Royd Chambers Otha Wearin Ro Foege Kevin Koester Doris Kelley William H. Nicholas Asma al-Assad Lee Hein Charles Isenhart Henry Clay Caldwell Jake Highfill Daniel Lundby Tom Tauke Sandy Salmon Libby Jacobs Ralph Watts Kevin McCarthy Roger Wendt John N. Irwin Rob Taylor Kurt Swaim Sharon S. Steckman Elizabeth Shaw Cindy Winckler Berl Priebe Rich Anderson Rich Arnold John Q. Tufts William F. Kopp Bruce Hunter Roger Thomas Gary Worthan Edward Mezvinsky Christopher Rants Ako Abdul-Samad Jodi Tymeson Steven Olson Dwayne Alons George R. Struble Mark Kuhn Joe Riding Karina Rabolini Matt Windschitl Thomas Stokeley Wilson Chuck Grassley Jeff Kaufmann Lucien Lester Ainsworth George M. Curtis William Hale Dwight Dinkla Israel A. Smith Pat Grassley Megan Hess Ernest Robert Moore Andrew Wenthe Madison Miner Walden Pam Jochum Asmus Boysen Steve Warnstadt Marcella Frevert Stephen Rapp Swati Dandekar Archibald Bryant Lawrence Pope Polly Granzow David Dawson James Grant Dave Heaton Burton E. Sweet Frances Smith Strickland Brian Meyer Cecil Dolecheck Chris Hall Matt McCoy Dick Taylor David Shaff Kay Halloran Tami Wiencek Byron G. Allen S. Addison Oliver Tom Sands Helen Miller James Wilson Claude R. Porter Gilbert N. Haugen John A. Kasson Jason Schultz John M. Peters Tom W. Shaw Steve Kettering James F. Hahn John Edwards Glen Massie James F. Wilson Chuck Gipp Jo Oldson Joel Fry Scott Ourth Ruth Ann Gaines Annette Sweeney Larry Marek Robert T. Anderson Ross Paustian John Selby Townsend Mary Mascher Clel Baudler James M. Tuttle Tom Schueller Rob Hogg Terry Branstad Granville G. Bennett Lester Menke Ed Fallon Charles A. Kennedy Joshua G. Newbold Joe Seng Rush Clark John L. Bascom Gene Ficken Lincoln Clark Ed Skinner Kirsten Running-Marquardt Jamie Van Fossen Jim Van Engelenhoven Martin N. Johnson Robert D. Blue Solomon F. Prouty Jack Miller Josh Byrnes John W. Beard William P. Wolf Wayne Ford Leander Clark Mary Ann Hanusa Michael Gronstal Tom Riley Dan Clute Henry W. Miller Ed H. Campbell Dennis Cohoon Moses Bloom Greg Forristall Stewart Iverson Rod Roberts Arch W. McFarlane Adoniram J. Holmes John Whitaker Nathan Reichert Henry W. Grout Merlin Bartz Elbert H. Hubbard Regina Pacini Jarad Klein W. L. Mooty Jack E. McCoy Tedd Gassman Tyler Olson Anesa Kajtazovic George W. McCrary Brian Quirk Dan Kelley Mike Blouin Arthur C. Greene Nathan Willems Thomas M. Bowen Jerry Kearns Jim Van Fossen Jeff Lamberti Jeff Smith Scott Raecker Abigail Adams Aylett R. Cotton Mary Gaskill Elesha Gayman Nathan E. Kendall Benton Jay Hall Geri Huser Dan Muhlbauer Mary Lou Freeman Henry Rayhons John Forbes Marti Anderson Kraig Paulsen Phyllis Thede Cassius C. Dowell Steven Lukan Mark Costello Janet Petersen William J. Scherle Linda Miller Sandy Greiner Mark Brandenburg Todd Taylor Julian Garrett Dave Deyoe Chuck Larson Dan Huseman George W. Clarke Joe Hutter Claus Lauritz Clausen Dóra Þórhallsdóttir
313
action count
action union
action filter_type
action find_reverse
entity member of the Iowa House of Representatives
relation position held
type common name
action filter_type
action find_reverse
entity First Lady
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'member of the Iowa House of Representatives'] [{'concept': 'common name'}, 'position held', 'First Lady']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:position_held ?v . VALUES ( ?v ) { ( resource:member_of_the_Iowa_House_of_Representatives ) ( resource:First_Lady ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q271474
P417
Q502895 Q12737077
USER
Which people are the patron saint of approximately the same number of occupations as Joseph of Arimathea ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q271474
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P417 ?z . ?z rdf:type ontology:Q502895 . ?k rdf:type ontology:Q12737077 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q271474 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?i = ?b ) }
Joseph of Arimathea
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Joseph of Arimathea
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:patron_saint ?z . ?z rdf:type ontology:common_name . ?k rdf:type ontology:occupation } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Joseph_of_Arimathea property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?i = ?b ) }
[]
common name occupation
Q9438 Q60059 Q44281
SYSTEM
Thomas Aquinas, Albertus Magnus, Ignatius of Loyola
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q271474
relation P417
type Q502895
[ANSWERS] are the patron saint of approximately the same number of occupations as Joseph of Arimathea
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P417 ?z . ?z rdf:type ontology:Q502895 . ?k rdf:type ontology:Q12737077 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q271474 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?i = ?b ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
Thomas Aquinas, Albertus Magnus and Ignatius of Loyola are the patron saint of approximately the same number of occupations as Joseph of Arimathea
Thomas Aquinas Albertus Magnus Ignatius of Loyola
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Joseph of Arimathea
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:patron_saint ?z . ?z rdf:type ontology:common_name . ?k rdf:type ontology:occupation } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Joseph_of_Arimathea property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?i = ?b ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P138
Q2385804 Q44539
USER
How many educational institutions and temples are named after that person ?
(c(Q2385804),P138,Q9438) (c(Q44539),P138,Q9438) (c(Q2385804),P138,Q9438) (c(Q44539),P138,Q9438) (c(Q2385804),P138,Q60059) (c(Q44539),P138,Q60059) (c(Q2385804),P138,Q44281) (c(Q44539),P138,Q44281)
[{'concept': 'Q2385804'}, 'P138', 'Q9438'] [{'concept': 'Q44539'}, 'P138', 'Q9438'] [{'concept': 'Q2385804'}, 'P138', 'Q9438'] [{'concept': 'Q44539'}, 'P138', 'Q9438'] [{'concept': 'Q2385804'}, 'P138', 'Q60059'] [{'concept': 'Q44539'}, 'P138', 'Q60059'] [{'concept': 'Q2385804'}, 'P138', 'Q44281'] [{'concept': 'Q44539'}, 'P138', 'Q44281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q9438 } UNION { ?y property:P138 resource:Q9438 } UNION { ?z property:P138 resource:Q9438 } UNION { ?y property:P138 resource:Q9438 } UNION { ?z property:P138 resource:Q60059 } UNION { ?y property:P138 resource:Q60059 } UNION { ?z property:P138 resource:Q44281 } UNION { ?y property:P138 resource:Q44281 } } . ?z rdf:type ontology:Q2385804 . ?y rdf:type ontology:Q7654661 }
[{'concept': 'educational institution'}, 'named after', 'Thomas Aquinas'] [{'concept': 'temple'}, 'named after', 'Thomas Aquinas'] [{'concept': 'educational institution'}, 'named after', 'Thomas Aquinas'] [{'concept': 'temple'}, 'named after', 'Thomas Aquinas'] [{'concept': 'educational institution'}, 'named after', 'Albertus Magnus'] [{'concept': 'temple'}, 'named after', 'Albertus Magnus'] [{'concept': 'educational institution'}, 'named after', 'Ignatius of Loyola'] [{'concept': 'temple'}, 'named after', 'Ignatius of Loyola']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Thomas_Aquinas } UNION { ?y property:named_after resource:Thomas_Aquinas } UNION { ?z property:named_after resource:Thomas_Aquinas } UNION { ?y property:named_after resource:Thomas_Aquinas } UNION { ?z property:named_after resource:Albertus_Magnus } UNION { ?y property:named_after resource:Albertus_Magnus } UNION { ?z property:named_after resource:Ignatius_of_Loyola } UNION { ?y property:named_after resource:Ignatius_of_Loyola } } . ?z rdf:type ontology:educational_institution . ?y rdf:type ontology:temple }
[]
educational institution temple
Quantitative|Count|Mult. entity type|Clarification
Q60059
SYSTEM
Did you mean Albertus Magnus ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q9438 } UNION { ?y property:P138 resource:Q9438 } UNION { ?z property:P138 resource:Q9438 } UNION { ?y property:P138 resource:Q9438 } UNION { ?z property:P138 resource:Q60059 } UNION { ?y property:P138 resource:Q60059 } UNION { ?z property:P138 resource:Q44281 } UNION { ?y property:P138 resource:Q44281 } } . ?z rdf:type ontology:Q2385804 . ?y rdf:type ontology:Q7654661 }
Did you mean Albertus Magnus ?
Albertus Magnus
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Thomas_Aquinas } UNION { ?y property:named_after resource:Thomas_Aquinas } UNION { ?z property:named_after resource:Thomas_Aquinas } UNION { ?y property:named_after resource:Thomas_Aquinas } UNION { ?z property:named_after resource:Albertus_Magnus } UNION { ?y property:named_after resource:Albertus_Magnus } UNION { ?z property:named_after resource:Ignatius_of_Loyola } UNION { ?y property:named_after resource:Ignatius_of_Loyola } } . ?z rdf:type ontology:educational_institution . ?y rdf:type ontology:temple }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Thomas Aquinas. Could you tell me the answer for that?
(c(Q2385804),P138,Q9438) (c(Q44539),P138,Q9438) (c(Q2385804),P138,Q9438) (c(Q44539),P138,Q9438) (c(Q2385804),P138,Q60059) (c(Q44539),P138,Q60059) (c(Q2385804),P138,Q44281) (c(Q44539),P138,Q44281)
Q9438
[{'concept': 'Q2385804'}, 'P138', 'Q9438'] [{'concept': 'Q44539'}, 'P138', 'Q9438'] [{'concept': 'Q2385804'}, 'P138', 'Q9438'] [{'concept': 'Q44539'}, 'P138', 'Q9438'] [{'concept': 'Q2385804'}, 'P138', 'Q60059'] [{'concept': 'Q44539'}, 'P138', 'Q60059'] [{'concept': 'Q2385804'}, 'P138', 'Q44281'] [{'concept': 'Q44539'}, 'P138', 'Q44281']
[{'concept': 'educational institution'}, 'named after', 'Thomas Aquinas'] [{'concept': 'temple'}, 'named after', 'Thomas Aquinas'] [{'concept': 'educational institution'}, 'named after', 'Thomas Aquinas'] [{'concept': 'temple'}, 'named after', 'Thomas Aquinas'] [{'concept': 'educational institution'}, 'named after', 'Albertus Magnus'] [{'concept': 'temple'}, 'named after', 'Albertus Magnus'] [{'concept': 'educational institution'}, 'named after', 'Ignatius of Loyola'] [{'concept': 'temple'}, 'named after', 'Ignatius of Loyola']
[]
SYSTEM
1 educational institutions and 1 temples
Q25812482 Q3584573
(c(Q2385804),P138,Q9438) (c(Q44539),P138,Q9438) (c(Q2385804),P138,Q9438) (c(Q44539),P138,Q9438) (c(Q2385804),P138,Q60059) (c(Q44539),P138,Q60059) (c(Q2385804),P138,Q44281) (c(Q44539),P138,Q44281)
[ANSWER]
[{'concept': 'Q2385804'}, 'P138', 'Q9438'] [{'concept': 'Q44539'}, 'P138', 'Q9438'] [{'concept': 'Q2385804'}, 'P138', 'Q9438'] [{'concept': 'Q44539'}, 'P138', 'Q9438'] [{'concept': 'Q2385804'}, 'P138', 'Q60059'] [{'concept': 'Q44539'}, 'P138', 'Q60059'] [{'concept': 'Q2385804'}, 'P138', 'Q44281'] [{'concept': 'Q44539'}, 'P138', 'Q44281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q9438 } UNION { ?y property:P138 resource:Q9438 } UNION { ?z property:P138 resource:Q9438 } UNION { ?y property:P138 resource:Q9438 } UNION { ?z property:P138 resource:Q60059 } UNION { ?y property:P138 resource:Q60059 } UNION { ?z property:P138 resource:Q44281 } UNION { ?y property:P138 resource:Q44281 } } . ?z rdf:type ontology:Q2385804 . ?y rdf:type ontology:Q7654661 }
Diocesan Seminary Santo Tomás d'Aquino Église Saint-Thomas-d'Aquin
1 educational institutions and 1 temples
[{'concept': 'educational institution'}, 'named after', 'Thomas Aquinas'] [{'concept': 'temple'}, 'named after', 'Thomas Aquinas'] [{'concept': 'educational institution'}, 'named after', 'Thomas Aquinas'] [{'concept': 'temple'}, 'named after', 'Thomas Aquinas'] [{'concept': 'educational institution'}, 'named after', 'Albertus Magnus'] [{'concept': 'temple'}, 'named after', 'Albertus Magnus'] [{'concept': 'educational institution'}, 'named after', 'Ignatius of Loyola'] [{'concept': 'temple'}, 'named after', 'Ignatius of Loyola']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Thomas_Aquinas } UNION { ?y property:named_after resource:Thomas_Aquinas } UNION { ?z property:named_after resource:Thomas_Aquinas } UNION { ?y property:named_after resource:Thomas_Aquinas } UNION { ?z property:named_after resource:Albertus_Magnus } UNION { ?y property:named_after resource:Albertus_Magnus } UNION { ?z property:named_after resource:Ignatius_of_Loyola } UNION { ?y property:named_after resource:Ignatius_of_Loyola } } . ?z rdf:type ontology:educational_institution . ?y rdf:type ontology:temple }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q78492
P35
Q502895 Q1048835 Q7275
USER
How many people have the highest formal authority in less number of political territories and states than Tomáš Garrigue Masaryk ?
(c(Q1048835)|c(Q7275),P35,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q78492
relation P35
type Q1048835
type Q7275
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:P35 ?w . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q1048835 } UNION { ?q property:P35 ?w . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q7275 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P35 resource:Q78492 . { ?t rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } } } . FILTER ( ?r < ?o ) }
Tomáš Garrigue Masaryk
action count
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Tomáš Garrigue Masaryk
relation head of state
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:head_of_state ?w . ?w rdf:type ontology:common_name . ?q rdf:type ontology:political_territorial_entity } UNION { ?q property:head_of_state ?w . ?w rdf:type ontology:common_name . ?q rdf:type ontology:state } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:head_of_state resource:Tomáš_Garrigue_Masaryk . { ?t rdf:type ?n . VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } } } . FILTER ( ?r < ?o ) }
[]
common name political territorial entity state
SYSTEM
451
Q29574 Q298403 Q356990 Q6737124 Q6756617 Q310994 Q189732 Q57530 Q110330 Q709734 Q653611 Q153620 Q1428924 Q9151911 Q297950 Q157 Q214029 Q13107337 Q152511 Q463533 Q365209 Q3176299 Q152335 Q365196 Q217500 Q320 Q194000 Q361567 Q57534 Q329 Q45068 Q151929 Q153986 Q43179 Q56226 Q171977 Q57491 Q57319 Q312557 Q57258 Q57313 Q236503 Q57315 Q162269 Q167724 Q55758 Q1359023 Q18119638 Q1459699 Q57383 Q57380 Q57381 Q310775 Q57385 Q6809265 Q128332 Q629702 Q13631996 Q367825 Q1059948 Q57405 Q57407 Q57402 Q310536 Q16105972 Q237951 Q57543 Q296741 Q207728 Q181154 Q14362 Q259331 Q264210 Q444 Q167699 Q16765135 Q297825 Q472323 Q4413 Q57429 Q57537 Q38987 Q15382355 Q363392 Q855252 Q57473 Q5901842 Q57348 Q361173 Q12967 Q3956186 Q1245 Q57478 Q1241 Q1240 Q1242 Q181832 Q19216 Q172388 Q15031 Q1238 Q299100 Q188214 Q16988 Q1230 Q42939 Q1233 Q1235 Q294969 Q561837 Q12762303 Q57449 Q57363 Q57366 Q57441 Q40722 Q57444 Q57446 Q154444 Q284233 Q2503364 Q295212 Q76179 Q5448556 Q41117 Q445553 Q165210 Q355610 Q2625711 Q1464 Q968038 Q128416 Q29032 Q29207 Q310247 Q289285 Q2866 Q2042 Q155004 Q196070 Q208497 Q179858 Q2416022 Q34105 Q44819 Q23530 Q880065 Q7747 Q152306 Q57667 Q299152 Q57542 Q147989 Q122304 Q6762928 Q377935 Q334851 Q236853 Q17485808 Q57324 Q57327 Q57488 Q6707612 Q16669148 Q57480 Q57482 Q192049 Q12149 Q2960197 Q36788 Q502185 Q57390 Q57392 Q57394 Q57398 Q52878 Q2112764 Q57431 Q57434 Q57436 Q57438 Q344729 Q14356 Q2105 Q944643 Q2038 Q19581 Q52927 Q483672 Q12366816 Q16597 Q15850 Q373532 Q76 Q3911 Q3910 Q57509 Q57506 Q57502 Q284003 Q16908893 Q181261 Q37181 Q52890 Q43330 Q128894 Q76127 Q191045 Q12950 Q44329 Q296950 Q57340 Q332709 Q2665070 Q128911 Q324108 Q15029 Q218435 Q4250160 Q1079522 Q57298 Q235454 Q57295 Q4631 Q150747 Q4414 Q2498541 Q2677 Q188409 Q57276 Q57274 Q57272 Q57379 Q57376 Q17410819 Q57371 Q57279 Q5018756 Q15054736 Q9099 Q562209 Q230578 Q9094 Q1112792 Q3518013 Q612803 Q3318231 Q295141 Q314791 Q153832 Q2091478 Q52925 Q52924 Q29213 Q52926 Q485946 Q1231345 Q42410 Q69569 Q1568274 Q10665 Q2444338 Q23034482 Q18117069 Q156806 Q336285 Q602428 Q45785 Q15633683 Q172183 Q311413 Q58077 Q12911 Q76167 Q242651 Q336913 Q7176020 Q17995110 Q42852 Q171684 Q57553 Q511888 Q58600 Q57311 Q379148 Q173347 Q13593432 Q77233 Q504372 Q217442 Q313539 Q205993 Q381027 Q189575 Q22513 Q57331 Q165487 Q57336 Q157068 Q1455923 Q613051 Q471037 Q46809 Q399998 Q16004 Q5972763 Q57343 Q81215 Q57424 Q57422 Q57421 Q14345 Q14342 Q16193958 Q473247 Q327203 Q20022984 Q76156 Q1982245 Q455854 Q936831 Q153167 Q1855372 Q58132 Q212188 Q156781 Q156780 Q2185 Q57519 Q57512 Q57517 Q57555 Q17488307 Q273228 Q187697 Q151944 Q154946 Q5816 Q57550 Q311583 Q128413 Q152265 Q357539 Q563297 Q313350 Q559756 Q313355 Q17582456 Q206471 Q151729 Q541507 Q34453 Q57289 Q57360 Q57282 Q57287 Q57284 Q57460 Q57467 Q57464 Q57308 Q3246667 Q156349 Q37979 Q965155 Q57303 Q5983599 Q10707 Q26776 Q332157 Q239717 Q2357762 Q50678 Q450675 Q4715 Q105480 Q128307 Q312355 Q146496 Q188667 Q298577 Q2498455 Q3407316 Q57413 Q57410 Q19943 Q57418 Q20090884 Q21968142 Q317894 Q163813 Q57356 Q24692 Q456902 Q5220343 Q1707507 Q33168 Q2124 Q360462 Q18352991 Q599988 Q297057 Q229493 Q57526 Q373605 Q380187 Q17132 Q138048 Q154912 Q212751 Q4772220 Q212058 Q878336 Q562002 Q701484 Q233984 Q314464 Q1898405 Q12976 Q57261 Q12974 Q12973 Q12971 Q14257286 Q1459658 Q128371 Q319153 Q57634 Q314514 Q57306 Q299173 Q1228 Q1224 Q22368 Q206421 Q1220 Q310136 Q57338 Q39259 Q307871 Q174662 Q2757 Q57458 Q57350 Q57352 Q57452 Q57456 Q57454 Q183848 Q380985 Q15039600
(c(Q1048835)|c(Q7275),P35,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q78492
relation P35
type Q1048835
type Q7275
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:P35 ?w . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q1048835 } UNION { ?q property:P35 ?w . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q7275 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P35 resource:Q78492 . { ?t rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } } } . FILTER ( ?r < ?o ) }
Beatrix of the Netherlands Umar II Michal Kováč Maithripala Sirisena Marcelo Rebelo de Sousa Patrick Hillery Leonid Kravchuk Gurbanguly Berdimuhamedow Ephraim Katzir Evaristo Carvalho Hipólito Mejía Amānullāh Khān Nicola Mancino Andrzej Duda R. Venkataraman François Hollande Kaarlo Juho Ståhlberg Giorgi Margvelashvili Eddie Fenech Adami Michel Temer Konstantinos Tsatsos Kolinda Grabar-Kitarović László Sólyom Phaedon Gizikis Rupiah Banda Michelle Bachelet Arnold Rüütel Muhammadu Buhari Mohammed Magariaf Nicolas Sarkozy Carl XVI Gustaf of Sweden Eduard Shevardnadze Guy Scott Ellen Johnson Sirleaf Kim Jong-un Tokugawa Ieyasu Ricardo Martinelli Norodom Sihamoni V. V. Giri Ivo Josipović José Eduardo dos Santos Fernando Collor de Mello Salva Kiir Mayardit Jefferson Davis Guido de Marco Aleksander Kwaśniewski Raul Khadjimba Guerrino Zanotti Viktor Yushchenko Girma Wolde-Giorgis Goodluck Jonathan Haris Silajdžić Jean-Claude Duvalier Teodoro Obiang Nguema Mbasogo Mehbooba Mufti Hisham ibn Abd al-Malik Leonid Kuchma Chennamaneni Vidyasagar Rao Salman bin Abdulaziz Al Saud Khalifa bin Zayed Al Nahyan Susilo Bambang Yudhoyono Truong Tan Sang Daniel Ortega Francesco I Sforza Michel Kafando Douglas Hyde Sprent Dabwido Enrique Peña Nieto Mohammad Najibullah Muawiyah I Chun Doo-hwan Yusof bin Ishak Muawiya II Lech Wałęsa Ugo Mifsud Bonnici Isabel Saint Malo Željko Komšić Ranasinghe Premadasa Alpha Condé Danilo Medina Letsie III of Lesotho Tony Tan Keng Yam Hery Rajaonarimampianina Michel Aoun Bhumibol Adulyadej Joan Enric Vives Sicília Horacio Cartes Isaias Afewerki Sulejman Tihić Leopold II Sergio Mattarella Enrico De Nicola Nicolae Timofti Giovanni Gronchi Antonio Segni Luigi Einaudi Moshe Katsav Ma Ying-jeou Ashraf Ghani Ahmadzai Xi Jinping Giuseppe Saragat Zalman Shazar Mary Robinson Liu Shaoqi Francesco Cossiga Bronisław Komorowski Sandro Pertini Giovanni Leone Mohamed Ould Abdel Aziz Mauricio Macri Andrej Kiska Ian Khama Andry Rajoelina Emomali Rahmon Ram Baran Yadav Dilma Rousseff Choummaly Sayasone Pranab Mukherjee Grand Duke Michael Alexandrovich of Russia Sulayman ibn Abd al-Malik Pietro Grasso Rosen Plevneliev Megawati Sukarnoputri Filipe Nyusi Kim Il-sung Prince Charles, Count of Flanders Kim Young-sam Mohammed Nadir Shah Vseslav Izyaslavich Benigno Simeon Cojuangco Aquino III Dong Biwu Ibrahim ibn al-Walid Miloš Zeman Sauli Niinistö Mohammed Daoud Khan Filippo Maria Visconti Alexander Lukashenko Charles de Gaulle Philippe of Belgium Uhuru Kenyatta Tupou VI Urho Kekkonen Raimonds Vējonis Hosni Mubarak Suharto Dmitry Medvedev Héctor García Godoy Vladimir Putin Carl Gustaf Emil Mannerheim Dési Bouterse Emil Constantinescu Filip Vujanović Joaquín Balaguer Nitish Kumar Marie Louise Coleiro Preca Yang Shangkun Zail Singh Ludovico Sforza Aguila Salah Issa Blaise Compaoré Hassanal Bolkiah Jakaya Kikwete Lydia Emerencia Patrice Talon Abdrabbuh Mansour Hadi Mahamadou Issoufou Yun Posun Thein Sein Charles Savarin Abd al-Malik ibn Marwan Andrey Vorobyov Ismaïl Omar Guelleh Armando Guebuza Nursultan Nazarbayev Aníbal Cavaco Silva Gustaf VI Adolf of Sweden Nicos Anastasiades Tomislav Nikolić Václav Klaus Gjorge Ivanov Macky Sall Christos Sartzetakis Park Chung-hee Jacques Chirac Mladen Ivanić François Mitterrand Ratael Correa Charles XIV John of Sweden Ali Abdullah Saleh Kersti Kaljulaid Jiang Zemin Oleksandr Turchynov Michail Stasinopoulos Barack Obama Albert II Albert II Atifete Jahjaga Andris Bērziņš George Abela Al-Walid I José Mário Vaz Charles Albert of Sardinia Luiz Inácio Lula da Silva Gustaf V of Sweden Mikhail Saakashvili Yitzhak Ben-Zvi Sukarno Felipe VI Alain Poher Bashar al-Assad Antanas Smetona Mswati III Giovanni Spadolini Jozo Križanović Ezer Weizman Ibrahim Boubacar Keïta Hu Jintao Zviad Gamsakhurdia Tion Otang Erasme Louis Surlet de Chokier Abdullah of Saudi Arabia K. R. Narayanan Ivan Gašparovič Mohamed Morsi Wilhelmina of the Netherlands Faure Gnassingbé Rogvolod Wilhelm II Yevgeny Shevchuk Michael Higgins Yoweri Museveni Paul Biya Dalia Grybauskaitė Jigme Khesar Namgyel Wangchuck Fuad Masum Ilham Aliyev Traian Băsescu John Magufuli Mulatu Teshome Tabaré Vázquez Cesare Merzagora Fernando Henrique Cardoso José Mujica Anna Maria Muccioli N. Chandrababu Naidu Serzh Sargsyan Joko Widodo Chaim Herzog Yazid II Alcide De Gasperi Ioannis Alevras Charles XV of Sweden Oscar II of Sweden Tarja Halonen Oscar I of Sweden Itamar Franco Paul Kagame Evo Morales Sardar Muhammad Yaqoob Khan Hage Geingob Kim Jong-il Mirko Šarović Taaneti Mamau Baldwin Lonsdale Konstantinos Karamanlis Tommy Remengesau Antonio Guzmán Fernández Kim Dae-jung Catherine Samba-Panza Chaim Weizmann Li Xiannian Petro Poroshenko Christopher Loeak Abdurrahman Wahid Roh Tae-woo Neelam Sanjiva Reddy Peter Mutharika Jimmy Morales Abdullah Gül Rhee Syng-man Mohammed VI of Morocco Leonard Petrosyan Friedrich III of Germany Juan Manuel Santos Jean-Pierre Bemba Éamon de Valera Adly Mansour Frederick III, Elector of Saxony Ye Jianying Yazid I Beji Caid el Sebsi William Gopallawa Pedro Pablo Kuczynski Ion Iliescu Zhu De Qaboos bin Said al Said Ahmet Necdet Sezer Ali Khamenei Lord Mountbatten Takakazu Ishii Robert Kocharyan Inayatullah Khan Raúl Castro Wee Kim Wee Henri, Grand Duke of Luxembourg Jacobo Majluta Azar Pierre Nkurunziza Petar Stoyanov Manuel Serifo Nhamadjo Donald Ramotar Tsakhiagiin Elbegdorj Roh Moo-hyun Lee Myung-bak Bidhya Bhandari Habibullāh Kalakāni Seán T. O'Kelly Ameenah Gurib-Fakim Bacharuddin Jusuf Habibie Ismail Shammout Reuven Rivlin Salvador Sánchez Cerén Valdas Adamkus Tamim bin Hamad Al Thani Nicolás Maduro S. R. Nathan Mário Soares Jorge Sampaio Georges Pompidou Taur Matan Ruak Michel Martelly Jorge Carlos Fonseca Sabah Al-Ahmad Al-Jaber Al-Sabah Aleksandr Zakharchenko Amintore Fanfani François Duvalier Leonel Fernández el ladron Juliana of the Netherlands Mao Zedong Abdul Halim of Kedah Yitzhak Navon Yazid III Mohammed Zahir Shah Gian Galeazzo Visconti Baron Waqa Choi Kyu-ha Dragan Čović Alexander Ankvab Ihor Plotnytskiy Borut Pahor Süleyman Demirel Arkadi Ghukasyan Boris Yeltsin Toomas Hendrik Ilves Hamad bin Khalifa Al Thani Jacob Zuma Harald V of Norway Ólafur Ragnar Grímsson Ernest Bai Koroma János Áder Abdullah II of Jordan Abdelaziz Bouteflika Abdul Hamid Sarvepalli Radhakrishnan Akihito Teburoro Tito Karolos Papoulias Luis Guillermo Solís Robert Mugabe Momčilo Krajišnik Shankar Dayal Sharma Pearlette Louisy Izyaslav of Polotsk John Mahama Francis Moncef Marzouki Kenneth Kaunda Al-Walid II Bakir Izetbegović Stjepan Mesić Burhanuddin Rabbani Marwan I Bryachislav of Polotsk Prokopis Pavlopoulos Alassane Ouattara Shimon Peres Juan Carlos I Denis Sassou Nguesso Hilda C. Heine Casten Nemra Galeazzo Maria Sforza Rudolf Schuster Yahya Jammeh Almazbek Atambayev Gian Maria Visconti Danny Faure Eliud Williams Kalvakuntla Chandrashekar Valéry Giscard d'Estaing Bako Sahakyan Edgar Lungu Roch Marc Christian Kaboré Frederick Chiluba Nino Burjanadze Bujar Nishani Epeli Nailatikau Ahmed Mahamoud Silanyo Soong Ching-ling Park Geun-hye Olav V of Norway Algirdas Brazauskas Anthony Carmona Levy Mwanawasa Gianfranco Terenzi Salvador Jorge Blanco Klaus Iohannis Tsai Ing-wen Tokugawa Hidetada Konijeti Rosaiah Baudouin of Belgium Georgi Parvanov Albert I Leopold III Leopold I Mamnoon Hussain Viktor Yanukovych Marwan II Hassan Sheikh Mohamud Hashim Thaçi Gian Galeazzo Sforza Jalal Talabani Michael Sata Oscar Luigi Scalfaro Carlo Azeglio Ciampi Chen Shui-bian Konstantinos Stephanopoulos Giorgio Napolitano Nebojša Radmanović Mahinda Rajapaksa Recep Tayyip Erdoğan Abdel Fattah el-Sisi Mary McAleese Lech Kaczyński Ikililou Dhoinine Idriss Déby Hamad bin Isa Al Khalifa François Bozizé Anote Tong Hans-Adam II, Prince of Liechtenstein Alija Izetbegović Aleksandras Stulginskis Gian Carlo Capicchioni
451
action count
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type state
action count
action filter_multi_types
action find_reverse
entity Tomáš Garrigue Masaryk
relation head of state
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:head_of_state ?w . ?w rdf:type ontology:common_name . ?q rdf:type ontology:political_territorial_entity } UNION { ?q property:head_of_state ?w . ?w rdf:type ontology:common_name . ?q rdf:type ontology:state } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:head_of_state resource:Tomáš_Garrigue_Masaryk . { ?t rdf:type ?n . VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } } } . FILTER ( ?r < ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q9438
P737
Q502895
USER
How many people did Thomas Aquinas have an influence on ?
(c(Q502895),P737,Q9438)
action count
action filter_type
action find_reverse
entity Q9438
relation P737
type Q502895
[{'concept': 'Q502895'}, 'P737', 'Q9438']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:Q502895 . ?o property:P737 resource:Q9438 }
Thomas Aquinas
action count
action filter_type
action find_reverse
entity Thomas Aquinas
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Thomas Aquinas']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:common_name . ?o property:influenced_by resource:Thomas_Aquinas }
[]
common name
SYSTEM
4
Q10337407 Q1067 Q229646 Q12807
(c(Q502895),P737,Q9438)
action count
action filter_type
action find_reverse
entity Q9438
relation P737
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P737', 'Q9438']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:Q502895 . ?o property:P737 resource:Q9438 }
Norman Geisler Dante Alighieri G. E. M. Anscombe Umberto Eco
4
action count
action filter_type
action find_reverse
entity Thomas Aquinas
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Thomas Aquinas']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:common_name . ?o property:influenced_by resource:Thomas_Aquinas }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q259364
P737
Q502895
USER
And also tell me about Eudora Welty?
(c(Q502895),P737,Q259364)
action count
action filter_type
action find_reverse
entity Q259364
relation P737
type Q502895
[{'concept': 'Q502895'}, 'P737', 'Q259364']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:Q502895 . ?c property:P737 resource:Q259364 }
Eudora Welty
action count
action filter_type
action find_reverse
entity Eudora Welty
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Eudora Welty']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:common_name . ?c property:influenced_by resource:Eudora_Welty }
[]
common name
SYSTEM
2
Q533505 Q40640
(c(Q502895),P737,Q259364)
action count
action filter_type
action find_reverse
entity Q259364
relation P737
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P737', 'Q259364']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:Q502895 . ?c property:P737 resource:Q259364 }
Wendell Berry Ray Bradbury
2
action count
action filter_type
action find_reverse
entity Eudora Welty
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Eudora Welty']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:common_name . ?c property:influenced_by resource:Eudora_Welty }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P50
Q2342494
USER
What is the collectable written by Thomas Aquinas ?
(c(Q2342494),P50,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q9438']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q2342494 . ?a property:P50 resource:Q9438 }
Thomas Aquinas
action filter_type
action find_reverse
entity Thomas Aquinas
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Thomas Aquinas']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:collectable . ?a property:author resource:Thomas_Aquinas }
[]
collectable
Q119823
SYSTEM
on being and essence
Q119823
(c(Q2342494),P50,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P50
type Q2342494
The collectable written by Thomas Aquinas is focus [ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q9438']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q2342494 . ?a property:P50 resource:Q9438 }
on being and essence
The collectable written by Thomas Aquinas is focus on being and essence
on being and essence
action filter_type
action find_reverse
entity Thomas Aquinas
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Thomas Aquinas']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:collectable . ?a property:author resource:Thomas_Aquinas }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P180
Q3305213
USER
Which painting depicts Thomas Aquinas ?
(c(Q3305213),P180,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q9438']
SELECT DISTINCT ?y WHERE { ?y property:P180 resource:Q9438 . ?y rdf:type ontology:Q3305213 }
Thomas Aquinas
action filter_type
action find_reverse
entity Thomas Aquinas
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Thomas Aquinas']
SELECT DISTINCT ?y WHERE { ?y property:depicts resource:Thomas_Aquinas . ?y rdf:type ontology:painting }
[]
painting
Q1215717
SYSTEM
Coronation of the Virgin
Q1215717
(c(Q3305213),P180,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P180
type Q3305213
The [ANSWER] depicts Thomas Aquinas
[{'concept': 'Q3305213'}, 'P180', 'Q9438']
SELECT DISTINCT ?y WHERE { ?y property:P180 resource:Q9438 . ?y rdf:type ontology:Q3305213 }
Coronation of the Virgin
The Coronation of the Virgin depicts Thomas Aquinas
Coronation of the Virgin
action filter_type
action find_reverse
entity Thomas Aquinas
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Thomas Aquinas']
SELECT DISTINCT ?y WHERE { ?y property:depicts resource:Thomas_Aquinas . ?y rdf:type ontology:painting }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P802
Q502895
USER
Which person was a pupil of Thomas Aquinas ?
(c(Q502895),P802,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q9438']
SELECT DISTINCT ?n WHERE { ?n property:P802 resource:Q9438 . ?n rdf:type ontology:Q502895 }
Thomas Aquinas
action filter_type
action find_reverse
entity Thomas Aquinas
relation student
type common name
[{'concept': 'common name'}, 'student', 'Thomas Aquinas']
SELECT DISTINCT ?n WHERE { ?n property:student resource:Thomas_Aquinas . ?n rdf:type ontology:common_name }
[]
common name
Q60059
SYSTEM
Albertus Magnus
Q60059
(c(Q502895),P802,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P802
type Q502895
[ANSWER] was a pupil of Thomas Aquinas
[{'concept': 'Q502895'}, 'P802', 'Q9438']
SELECT DISTINCT ?n WHERE { ?n property:P802 resource:Q9438 . ?n rdf:type ontology:Q502895 }
Albertus Magnus
Albertus Magnus was a pupil of Thomas Aquinas
Albertus Magnus
action filter_type
action find_reverse
entity Thomas Aquinas
relation student
type common name
[{'concept': 'common name'}, 'student', 'Thomas Aquinas']
SELECT DISTINCT ?n WHERE { ?n property:student resource:Thomas_Aquinas . ?n rdf:type ontology:common_name }
[]