Simple Question (Direct)
Simple Question
Q6999272
P734
Q82799
USER
Who has the surname Bernie Harris ?
(Q6999272,P734,c(Q82799))
action filter_type
action find
entity Q6999272
relation P734
type Q82799
['Q6999272', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q6999272 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Bernie Harris
action filter_type
action find
entity Bernie Harris
relation family name
type name
['Bernie Harris', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Bernie_Harris property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q10859343
SYSTEM
Harris
Q10859343
(Q6999272,P734,c(Q82799))
action filter_type
action find
entity Q6999272
relation P734
type Q82799
[ANSWER] has the surname Bernie [ANSWER]
['Q6999272', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q6999272 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Harris
Harris has the surname Bernie Harris
Harris
action filter_type
action find
entity Bernie Harris
relation family name
type name
['Bernie Harris', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Bernie_Harris property:family_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6999272
P27
Q15617994
USER
Which administrative territories are that person an inhabitant of ?
(Q10859343,P27,c(Q15617994))
action filter_type
action find
entity Q6999272
relation P27
type Q15617994
['Q10859343', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q6999272 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Bernie Harris
action filter_type
action find
entity Bernie Harris
relation country of citizenship
type designation for an administrative territorial entity
['Harris', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bernie_Harris property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q30
SYSTEM
Finland, United States of America
Q33 Q30
(Q10859343,P27,c(Q15617994))
action filter_type
action find
entity Q6999272
relation P27
type Q15617994
[ANSWERS] are that person an inhabitant of
['Q10859343', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q6999272 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Finland United States of America
Finland and United States of America are that person an inhabitant of
Finland United States of America
action filter_type
action find
entity Bernie Harris
relation country of citizenship
type designation for an administrative territorial entity
['Harris', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bernie_Harris property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q337567 Q1267889 Q15617994
USER
How many administrative territories are located nearby around 1 still waterss and waterways ?
(c(Q15617994),P206,c(Q337567)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?o WHERE { VALUES ( ?m ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } . ?n rdf:type ?m } GROUP BY ?o } . FILTER ( ?c = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?o WHERE { VALUES ( ?m ) { ( ontology:still_waters ) ( ontology:waterway ) } . ?n rdf:type ?m } GROUP BY ?o } . FILTER ( ?c = 1 ) }
[]
still waters waterway designation for an administrative territorial entity
SYSTEM
16
Q104577 Q47585 Q6237 Q664950 Q216422 Q244095 Q7566251 Q34 Q104192 Q681329 Q690219 Q2043234 Q42265 Q20267 Q194136 Q47612
(c(Q15617994),P206,c(Q337567)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?o WHERE { VALUES ( ?m ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } . ?n rdf:type ?m } GROUP BY ?o } . FILTER ( ?c = 1 ) }
Desenzano del Garda Garda Lecco Loddin Samsø Bellagio South Bay Sweden Kleinmachnow Dümmer Perlin Almere Buiten Abbadia Lariana Schwarz Riva del Garda Domaso
16
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?o WHERE { VALUES ( ?m ) { ( ontology:still_waters ) ( ontology:waterway ) } . ?n rdf:type ?m } GROUP BY ?o } . FILTER ( ?c = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q2031291 Q15416
USER
Which administrative territories are the countries of origin of min number of releases or television programs ?
(c(Q2031291)|c(Q15416),P495,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
[[{'concept': 'Q2031291'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?y WHERE { { ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q2031291 . ?p property:P495 ?y } UNION { ?p property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?h = ?o ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) ?f WHERE { VALUES ( ?z ) { ( ontology:Q2031291 ) ( ontology:Q15416 ) } . ?k rdf:type ?z } GROUP BY ?f } } }
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
[[{'concept': 'release'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?y WHERE { { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:release . ?p property:country_of_origin ?y } UNION { ?p property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?h = ?o ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) ?f WHERE { VALUES ( ?z ) { ( ontology:release ) ( ontology:television_program ) } . ?k rdf:type ?z } GROUP BY ?f } } }
[]
designation for an administrative territorial entity release television program
Q953 Q184 Q347
SYSTEM
Zambia, Belarus, Liechtenstein
Q805 Q800 Q1462 Q12536 Q262 Q783 Q265 Q36678 Q711 Q1460 Q657 Q792 Q790 Q4628 Q796 Q954 Q958 Q986 Q244 Q811 Q153136 Q924 Q423 Q983 Q851 Q733 Q29999 Q819 Q730 Q1013 Q159626 Q236 Q233 Q238 Q1045 Q1044 Q1049 Q1025 Q1027 Q1020 Q184 Q1029 Q1028 Q227 Q223 Q221 Q347 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q962 Q963 Q115 Q912 Q917 Q1007 Q1006 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q77 Q948 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q2031291)|c(Q15416),P495,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
[ANSWERS] are the countries of origin of min number of releases or television programs
[[{'concept': 'Q2031291'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?y WHERE { { ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q2031291 . ?p property:P495 ?y } UNION { ?p property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?h = ?o ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) ?f WHERE { VALUES ( ?z ) { ( ontology:Q2031291 ) ( ontology:Q15416 ) } . ?k rdf:type ?z } GROUP BY ?f } } }
Yemen Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan West Bank Mongolia Sicily Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe South Sudan Eritrea Barbados Nicaragua Habsburg Empire Tanzania North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Laos Suriname Lesotho Württemberg Montenegro Malta San Marino Somalia Sierra Leone Sudan Mauritania Mauritius Malawi Belarus Mozambique Morocco Azerbaijan Greenland Republic of Macedonia Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Benin Botswana Ethiopia Mali Bhutan Guinea-Bissau Guinea Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Uruguay Tunisia Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
Zambia, Belarus and Liechtenstein are the countries of origin of min number of releases or television programs
Zambia Belarus Liechtenstein
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
[[{'concept': 'release'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) ?y WHERE { { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:release . ?p property:country_of_origin ?y } UNION { ?p property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?h = ?o ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) ?f WHERE { VALUES ( ?z ) { ( ontology:release ) ( ontology:television_program ) } . ?k rdf:type ?z } GROUP BY ?f } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7549076 Q30
P6 P175
Q502895
USER
Which people have United States of America as their heads of government or were performed by So Damn Beautiful ?
OR((Q30,P6,c(Q502895)), (Q7549076,P175,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q7549076
relation P175
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q7549076', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q30 property:P6 ?f } UNION { resource:Q7549076 property:P175 ?f } } . ?f rdf:type ontology:Q502895 }
So Damn Beautiful United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity So Damn Beautiful
relation performer
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['So Damn Beautiful', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { { resource:United_States_of_America property:head_of_government ?f } UNION { resource:So_Damn_Beautiful property:performer ?f } } . ?f rdf:type ontology:common_name }
[]
common name
Q11817 Q11891 Q23 Q9582 Q76 Q12325 Q207 Q23685 Q35171 Q8007
SYSTEM
Some of them are Andrew Jackson, James K. Polk, George Washington, Gerald Ford, Barack Obama, James Buchanan, George W. Bush, Jimmy Carter, Grover Cleveland, Franklin Delano Roosevelt
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q6832985 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q7549076,P175,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q7549076
relation P175
type Q502895
[ANSWERS] have United States of America as their heads of government or were performed by So Damn Beautiful
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q7549076', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q30 property:P6 ?f } UNION { resource:Q7549076 property:P175 ?f } } . ?f rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Michael Murphy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Andrew Jackson, James K. Polk, George Washington, Gerald Ford, Barack Obama, James Buchanan, George W. Bush, Jimmy Carter, Grover Cleveland and Franklin Delano Roosevelt have United States of America as their heads of government or were performed by So Damn Beautiful
Andrew Jackson James K. Polk George Washington Gerald Ford Barack Obama James Buchanan George W. Bush Jimmy Carter Grover Cleveland Franklin Delano Roosevelt
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity So Damn Beautiful
relation performer
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['So Damn Beautiful', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { { resource:United_States_of_America property:head_of_government ?f } UNION { resource:So_Damn_Beautiful property:performer ?f } } . ?f rdf:type ontology:common_name }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P144
Q502895 Q15961987
USER
How many people do more number of television genres extend upon than that person ?
(c(Q15961987),P144,c(Q502895))
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]
common name television genre
Comparative|Count over More/Less|Single entity type|Clarification
Q35171
SYSTEM
Did you mean Grover Cleveland ?
(c(Q15961987),P144,c(Q502895))
[ANSWER]
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
Did you mean Grover Cleveland ?
Grover Cleveland
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Barack Obama. Could you tell me the answer for that?
(c(Q15961987),P144,c(Q502895))
Q76
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
[]
SYSTEM
1
Q5358186
(c(Q15961987),P144,c(Q502895))
[ANSWER]
[{'concept': 'Q15961987'}, 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P144 ?y . ?z rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 }
Yarō Abe
1
[{'concept': 'television genre'}, 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:based_on ?y . ?z rdf:type ontology:television_genre . ?y rdf:type ontology:common_name }
[]