Simple Question (Direct)
Simple Question
Q92072
P21
Q290
USER
Which sex does Erich Ponto belong to ?
(Q92072,P21,c(Q290))
action filter_type
action find
entity Q92072
relation P21
type Q290
['Q92072', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q92072 property:P21 ?h . ?h rdf:type ontology:Q290 }
Erich Ponto
action filter_type
action find
entity Erich Ponto
relation gender
type sex
['Erich Ponto', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Erich_Ponto property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q92072,P21,c(Q290))
action filter_type
action find
entity Q92072
relation P21
type Q290
Erich Ponto belongs to [ANSWER]
['Q92072', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q92072 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Erich Ponto belongs to male
male
action filter_type
action find
entity Erich Ponto
relation gender
type sex
['Erich Ponto', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Erich_Ponto property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q92072
P20
Q56061
USER
Where did Erich Ponto expire ?
(Q92072,P20,c(Q56061))
action filter_type
action find
entity Q92072
relation P20
type Q56061
['Q92072', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q92072 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Erich Ponto
action filter_type
action find
entity Erich Ponto
relation place of death
type administrative territorial entity
['Erich Ponto', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Erich_Ponto property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022
SYSTEM
Stuttgart
Q1022
(Q92072,P20,c(Q56061))
action filter_type
action find
entity Q92072
relation P20
type Q56061
Erich Ponto expired [ANSWER]
['Q92072', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q92072 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Stuttgart
Erich Ponto expired Stuttgart
Stuttgart
action filter_type
action find
entity Erich Ponto
relation place of death
type administrative territorial entity
['Erich Ponto', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Erich_Ponto property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q891136
Q56061
USER
And how about Bojan Ikonomow?
(Q891136,P20,c(Q56061))
action filter_type
action find
entity Q891136
relation P20
type Q56061
['Q891136', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q891136 property:P20 ?y }
Bojan Ikonomow
action filter_type
action find
entity Bojan Ikonomow
relation place of death
type administrative territorial entity
['Bojan Ikonomow', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Bojan_Ikonomow property:place_of_death ?y }
[]
administrative territorial entity
Q472
SYSTEM
Sofia
Q472
(Q891136,P20,c(Q56061))
action filter_type
action find
entity Q891136
relation P20
type Q56061
[ANSWER]
['Q891136', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q891136 property:P20 ?y }
Sofia
Sofia
action filter_type
action find
entity Bojan Ikonomow
relation place of death
type administrative territorial entity
['Bojan Ikonomow', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Bojan_Ikonomow property:place_of_death ?y }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q56061 Q2342494 Q15416
USER
Which administrative territories are min number of collectables and television programs set in ?
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?e WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?b WHERE { { ?h property:P840 ?b . ?b rdf:type ontology:Q56061 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P840 ?b . ?b rdf:type ontology:Q56061 . ?h rdf:type ontology:Q15416 } } GROUP BY ?b } . FILTER ( ?u = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?e WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?b WHERE { { ?h property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:collectable } UNION { ?h property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:television_program } } GROUP BY ?b } . FILTER ( ?u = ?f ) }
[]
administrative territorial entity collectable television program
Q1085 Q490 Q8686
SYSTEM
Prague, Milan, Shanghai
Q1715 Q7436 Q21075005 Q1183 Q3711 Q331990 Q210292 Q28729 Q25286 Q2280 Q3805 Q501661 Q49233 Q1255278 Q42096 Q18808 Q23725 Q3659 Q16563 Q23337 Q8692 Q124739 Q3413045 Q79873 Q81788 Q43453 Q308891 Q101625 Q48320 Q80985 Q80734 Q7880 Q1435589 Q690 Q257536 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q25319 Q54140 Q180294 Q8818 Q34739 Q1335 Q594807 Q9427 Q48274 Q12340599 Q186237 Q37776 Q1489 Q7094142 Q11864 Q83387 Q462799 Q8673 Q11703 Q490 Q48370 Q36036 Q3703 Q208287 Q54212 Q490584 Q3630 Q17151 Q6046 Q25416 Q239 Q16558 Q16559 Q753121 Q8686 Q994 Q35178 Q113546 Q3037 Q723329 Q900 Q14815 Q13670 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q214178 Q25395 Q78 Q70 Q178168 Q37100 Q2214 Q270 Q37066 Q486439 Q26887 Q208472 Q82490 Q79985 Q49243 Q3766 Q41604 Q1070 Q3590079 Q837165 Q41819 Q41329 Q1555 Q1491 Q1492 Q16562 Q6225 Q437 Q2118905 Q1479 Q1780 Q690052 Q2090 Q2073211 Q1851 Q18705 Q3820 Q621549 Q49149 Q676689 Q271411 Q13496 Q340 Q125434 Q25331 Q25231 Q25230 Q612 Q3305102 Q990168 Q1015727 Q34713 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q1659757 Q268873 Q530090 Q3825 Q159232 Q1867 Q384 Q5813 Q27393 Q12191 Q126148 Q202337 Q837478 Q184345 Q49111 Q499196 Q495373 Q10313 Q3640 Q647 Q41621 Q3012 Q3483936 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q1449 Q47048 Q1764 Q34932 Q2211 Q2704 Q47716 Q1040 Q6441 Q374748 Q485172 Q26793 Q4190 Q897848 Q165413 Q1574020 Q3992 Q3110 Q630533 Q2751 Q41876 Q41970 Q34647 Q1085
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
Set in Prague [ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?e WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?b WHERE { { ?h property:P840 ?b . ?b rdf:type ontology:Q56061 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P840 ?b . ?b rdf:type ontology:Q56061 . ?h rdf:type ontology:Q15416 } } GROUP BY ?b } . FILTER ( ?u = ?f ) }
Hanover Gatchina Serritslev Puerto Rico Belgrade Korean Demilitarized Zone Yozgat Kozhikode Uppsala Minsk Amman Schleswig Orlando Dragør Miryang Pyongyang Byzantium N'Djamena Memphis Salt Lake City Bilbao Tijuana Farsø Tombstone Giza Plzeň special wards of Tokyo Marrakesh Kōbe Fes Campagna Toulouse Folsom Delft Janesville Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Aarhus Salem Jaffa Valencia Dayton Montevideo Søborg Timbuktu Nashua Vedersø Joensuu Besançon Mexico City Onllwyn Junagadh Diyarbakır Evanston Lagos United States Virgin Islands Milan Manchester Lviv Bamako Kauniainen Barnsley Flint Jakarta Thessaloniki Novara Stavanger Brussels Fort Worth Austin Atacames Shanghai Tbilisi Kuwait City Blackeberg Kathmandu Ascot Kazan Weißenfels Syracuse Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Nablus Newark Basel Bern Mitrovica Auckland Pskov Warsaw Bismarck Cedar Rapids Davenport Bingöl Lyme Regis Kodiak Riverside Damascus Amiens Ahmedabad Hvidovre Hyrylä Kansas City Linz Guatemala City La Paz Barcelona El Paso Coventry Ljubljana Purley Bordeaux Bratislava Trebinje Nuremberg Talamone Arkhangelsk Bajram Curri Beirut Inglewood Nantucket Gravesend Malindi Brindisi Montreal Port Elizabeth Odense Svalbard Guernsey Dubai Tsamantas Keighley Mbale Salzburg Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Gimli Newport Beach Jerichow Libreville Santa Cruz Taipei Skopje Canary Islands Herning Nantes Tangier Nauplion Sabinov Viña del Mar Cambridge Costa Mesa Visalia Donostia/San Sebastián Ankara Rennes Haifa Ulm Sils Maria Jamestown Ramallah Southampton Olympia Łódź Bonn Genoa Oulu Reykjavík Brisbane Malmö Pescara Charleston Karlsruhe Montpellier Jenin Ann Arbor Bergen Passau Brande Baikonur The Hamptons Liège San Salvador Tire Siena Reims Pyatigorsk Johannesburg Prague
Set in Prague Prague, Milan and Shanghai
Prague Milan Shanghai
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?e WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?b WHERE { { ?h property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:collectable } UNION { ?h property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:television_program } } GROUP BY ?b } . FILTER ( ?u = ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1022
P138
Q56061 Q1048835
USER
How many administrative territories and political territories are named after Stuttgart ?
(c(Q56061),P138,Q1022) (c(Q1048835),P138,Q1022)
action count
action union
action filter_type
action find_reverse
entity Q1022
relation P138
type Q56061
action filter_type
action find_reverse
entity Q1022
relation P138
type Q1048835
[{'concept': 'Q56061'}, 'P138', 'Q1022'] [{'concept': 'Q1048835'}, 'P138', 'Q1022']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?v ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?e rdf:type ?v }
Stuttgart
action count
action union
action filter_type
action find_reverse
entity Stuttgart
relation named after
type administrative territorial entity
action filter_type
action find_reverse
entity Stuttgart
relation named after
type political territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Stuttgart'] [{'concept': 'political territorial entity'}, 'named after', 'Stuttgart']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?v ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?e rdf:type ?v }
[]
administrative territorial entity political territorial entity
SYSTEM
1 administrative territories and 1 political territories
Q79844 Q8172
(c(Q56061),P138,Q1022) (c(Q1048835),P138,Q1022)
action count
action union
action filter_type
action find_reverse
entity Q1022
relation P138
type Q56061
action filter_type
action find_reverse
entity Q1022
relation P138
type Q1048835
[ANSWER]
[{'concept': 'Q56061'}, 'P138', 'Q1022'] [{'concept': 'Q1048835'}, 'P138', 'Q1022']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?v ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?e rdf:type ?v }
Stuttgart Stuttgart Government Region
1 administrative territories and 1 political territories
action count
action union
action filter_type
action find_reverse
entity Stuttgart
relation named after
type administrative territorial entity
action filter_type
action find_reverse
entity Stuttgart
relation named after
type political territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Stuttgart'] [{'concept': 'political territorial entity'}, 'named after', 'Stuttgart']
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?v ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?e rdf:type ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q472
P937
Q502895
USER
Which people have Sofia as work location ?
(c(Q502895),P937,Q472)
action filter_type
action find_reverse
entity Q472
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q472']
SELECT DISTINCT ?l WHERE { ?l property:P937 resource:Q472 . ?l rdf:type ontology:Q502895 }
Sofia
action filter_type
action find_reverse
entity Sofia
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Sofia']
SELECT DISTINCT ?l WHERE { ?l property:work_location resource:Sofia . ?l rdf:type ontology:common_name }
[]
common name
Q151667 Q1359722 Q155074
SYSTEM
Ferdinand I of Bulgaria, Mykhailo Drahomanov, Georgi Dimitrov
Q15453446 Q151667 Q313833 Q1359722 Q358416 Q1895794 Q2423954 Q1372813 Q454661 Q88030 Q155074 Q216706 Q451244
(c(Q502895),P937,Q472)
action filter_type
action find_reverse
entity Q472
relation P937
type Q502895
[ANSWERS] have Sofia as work location
[{'concept': 'Q502895'}, 'P937', 'Q472']
SELECT DISTINCT ?l WHERE { ?l property:P937 resource:Q472 . ?l rdf:type ontology:Q502895 }
Martin Korol Ferdinand I of Bulgaria Stefan Stambolov Mykhailo Drahomanov Ruben Bierer Maria Dundakova Thomas Frahm Eugen Philippow Vasil Radoslavov Gustav Heinse Georgi Dimitrov Adolf Beckerle Veselin Beshevliev
Ferdinand I of Bulgaria, Mykhailo Drahomanov and Georgi Dimitrov have Sofia as work location
Ferdinand I of Bulgaria Mykhailo Drahomanov Georgi Dimitrov
action filter_type
action find_reverse
entity Sofia
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Sofia']
SELECT DISTINCT ?l WHERE { ?l property:work_location resource:Sofia . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1022
P361
Q1048835
USER
Which political territory is Stuttgart a component of ?
(Q1022,P361,c(Q1048835))
action filter_type
action find
entity Q1022
relation P361
type Q1048835
['Q1022', 'P361', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1022 property:P361 ?l . ?l rdf:type ontology:Q1048835 }
Stuttgart
action filter_type
action find
entity Stuttgart
relation part of
type political territorial entity
['Stuttgart', 'part of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stuttgart property:part_of ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q8172
SYSTEM
Stuttgart Government Region
Q8172
(Q1022,P361,c(Q1048835))
action filter_type
action find
entity Q1022
relation P361
type Q1048835
Which political territory is Stuttgart a component of
['Q1022', 'P361', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1022 property:P361 ?l . ?l rdf:type ontology:Q1048835 }
Stuttgart Government Region
Which political territory is Stuttgart a component of
Stuttgart Government Region
action filter_type
action find
entity Stuttgart
relation part of
type political territorial entity
['Stuttgart', 'part of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stuttgart property:part_of ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1016
P530
Q1048835 Q15617994
USER
How many administrative territories have ambassadorial relations with approximately the same number of political territories as Libya ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1016
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?y ) WHERE { ?h property:P530 ?f . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q1016 property:P530 ?u } } . FILTER ( ?y = ?g ) }
Libya
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Libya
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?y ) WHERE { ?h property:diplomatic_relation ?f . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Libya property:diplomatic_relation ?u } } . FILTER ( ?y = ?g ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
124
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1016
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?y ) WHERE { ?h property:P530 ?f . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q1016 property:P530 ?u } } . FILTER ( ?y = ?g ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
124
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Libya
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?y ) WHERE { ?h property:diplomatic_relation ?f . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Libya property:diplomatic_relation ?u } } . FILTER ( ?y = ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q702
P530
Q1048835 Q15617994
USER
And what about Federated States of Micronesia?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q702
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?o ) WHERE { ?z property:P530 ?j . ?z rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q702 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?f ) }
Federated States of Micronesia
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Federated States of Micronesia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?o ) WHERE { ?z property:diplomatic_relation ?j . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Federated_States_of_Micronesia property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?f ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
124
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q702
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?o ) WHERE { ?z property:P530 ?j . ?z rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q702 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?f ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
124
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Federated States of Micronesia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?o ) WHERE { ?z property:diplomatic_relation ?j . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Federated_States_of_Micronesia property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1085
P740
Q43229
USER
What were formed at Prague ?
(c(Q43229),P740,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q1085']
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q1085 . ?o rdf:type ontology:Q43229 }
Prague
action filter_type
action find_reverse
entity Prague
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Prague']
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Prague . ?o rdf:type ontology:organization }
[]
organization
Q1979720 Q341134 Q59186
SYSTEM
PPF, Česká televize, Walter Aircraft Engines
Q341134 Q1979720 Q59186 Q5286942 Q3504469 Q7448650 Q304944 Q2247432 Q1667016
(c(Q43229),P740,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P740
type Q43229
[ANSWERS] were formed at Prague
[{'concept': 'Q43229'}, 'P740', 'Q1085']
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q1085 . ?o rdf:type ontology:Q43229 }
Česká televize PPF Walter Aircraft Engines Dobrá čajovna The Matadors Sellier & Bellot České dráhy a.s. Avast Software International Union of Students
PPF, Česká televize and Walter Aircraft Engines were formed at Prague
PPF Česká televize Walter Aircraft Engines
action filter_type
action find_reverse
entity Prague
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Prague']
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Prague . ?o rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1979720
P112
Q502895
USER
Which person was established by that organization ?
(c(Q502895),P112,Q1979720)
action filter_type
action find
entity Q1979720
relation P112
type Q502895
[{'concept': 'Q502895'}, 'P112', 'Q1979720']
SELECT DISTINCT ?k WHERE { resource:Q1979720 property:P112 ?k . ?k rdf:type ontology:Q502895 }
PPF
action filter_type
action find
entity PPF
relation founder
type common name
[{'concept': 'common name'}, 'founder', 'PPF']
SELECT DISTINCT ?k WHERE { resource:PPF property:founder ?k . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1979720
SYSTEM
Did you mean PPF ?
Q1979720 Q341134 Q59186
(c(Q502895),P112,Q1979720) (c(Q502895),P112,Q341134) (c(Q502895),P112,Q59186)
[ANSWER]
[{'concept': 'Q502895'}, 'P112', 'Q1979720'] [{'concept': 'Q502895'}, 'P112', 'Q341134'] [{'concept': 'Q502895'}, 'P112', 'Q59186']
SELECT DISTINCT ?k WHERE { resource:Q1979720 property:P112 ?k . ?k rdf:type ontology:Q502895 }
PPF Česká televize Walter Aircraft Engines
Did you mean PPF ?
PPF
[{'concept': 'common name'}, 'founder', 'PPF'] [{'concept': 'common name'}, 'founder', 'Česká televize'] [{'concept': 'common name'}, 'founder', 'Walter Aircraft Engines']
SELECT DISTINCT ?k WHERE { resource:PPF property:founder ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P112,Q1979720)
[{'concept': 'Q502895'}, 'P112', 'Q1979720']
[{'concept': 'common name'}, 'founder', 'PPF']
[]
Q1395375
SYSTEM
Petr Kellner
Q1395375
(c(Q502895),P112,Q1979720)
action filter_type
action find
entity Q1979720
relation P112
type Q502895
[ANSWER] was established by that organization
[{'concept': 'Q502895'}, 'P112', 'Q1979720']
SELECT DISTINCT ?k WHERE { resource:Q1979720 property:P112 ?k . ?k rdf:type ontology:Q502895 }
Petr Kellner
Petr Kellner was established by that organization
Petr Kellner
action filter_type
action find
entity PPF
relation founder
type common name
[{'concept': 'common name'}, 'founder', 'PPF']
SELECT DISTINCT ?k WHERE { resource:PPF property:founder ?k . ?k rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1395375 Q7920201
P127
Q43229
USER
Is Venrock owned by that person ?
(Q7920201,P127,Q1395375)
action is_in
entity Q7920201
action find
entity Q1395375
relation P127
['Q7920201', 'P127', 'Q1395375']
ASK WHERE { resource:Q1395375 property:P127 resource:Q7920201 }
Petr Kellner Venrock
action is_in
entity Venrock
action find
entity Petr Kellner
relation owned by
['Venrock', 'owned by', 'Petr Kellner']
ASK WHERE { resource:Petr_Kellner property:owned_by resource:Venrock }
[]
organization
SYSTEM
NO
(Q7920201,P127,Q1395375)
action is_in
entity Q7920201
action find
entity Q1395375
relation P127
[ANSWER]
['Q7920201', 'P127', 'Q1395375']
ASK WHERE { resource:Q1395375 property:P127 resource:Q7920201 }
No
action is_in
entity Venrock
action find
entity Petr Kellner
relation owned by
['Venrock', 'owned by', 'Petr Kellner']
ASK WHERE { resource:Petr_Kellner property:owned_by resource:Venrock }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q472 Q911717 Q1899
P190
Q515
USER
Is Sofia twin city of Ono and Kyiv ?
(Q472,P190,Q911717) (Q472,P190,Q1899)
action is_in
entity Q472
action intersection
action find_reverse
entity Q911717
relation P190
action find_reverse
entity Q1899
relation P190
['Q472', 'P190', 'Q911717'] ['Q472', 'P190', 'Q1899']
ASK WHERE { resource:Q472 property:P190 resource:Q911717 . resource:Q472 property:P190 resource:Q1899 }
Sofia Ono Kyiv
action is_in
entity Sofia
action intersection
action find_reverse
entity Ono
relation sister city
action find_reverse
entity Kyiv
relation sister city
['Sofia', 'sister city', 'Ono'] ['Sofia', 'sister city', 'Kyiv']
ASK WHERE { resource:Sofia property:sister_city resource:Ono . resource:Sofia property:sister_city resource:Kyiv }
[]
city
SYSTEM
NO and YES respectively
(Q472,P190,Q911717) (Q472,P190,Q1899)
action is_in
entity Q472
action intersection
action find_reverse
entity Q911717
relation P190
action find_reverse
entity Q1899
relation P190
[ANSWER]
['Q472', 'P190', 'Q911717'] ['Q472', 'P190', 'Q1899']
ASK WHERE { resource:Q472 property:P190 resource:Q911717 . resource:Q472 property:P190 resource:Q1899 }
NO and YES respectively
action is_in
entity Sofia
action intersection
action find_reverse
entity Ono
relation sister city
action find_reverse
entity Kyiv
relation sister city
['Sofia', 'sister city', 'Ono'] ['Sofia', 'sister city', 'Kyiv']
ASK WHERE { resource:Sofia property:sister_city resource:Ono . resource:Sofia property:sister_city resource:Kyiv }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 1657 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1657
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?p = 1657 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1657
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?p = 1657 ) }
[]
musical instrument common name
Q80284 Q46185 Q80019
SYSTEM
viola, bass guitar, double bass
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1657
[ANSWERS] are played by around 1657 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?p = 1657 ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
Viola, bass guitar and double bass are played by around 1657 people
viola bass guitar double bass
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1657
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?p = 1657 ) }
[]