Simple Question (Direct)
Simple Question
Q11978913
P39
Q12737077
USER
Which occupation was a position held by John Arnstad ?
(Q11978913,P39,c(Q12737077))
action filter_type
action find
entity Q11978913
relation P39
type Q12737077
['Q11978913', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q11978913 property:P39 ?l }
John Arnstad
action filter_type
action find
entity John Arnstad
relation position held
type occupation
['John Arnstad', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:John_Arnstad property:position_held ?l }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q11978913,P39,c(Q12737077))
action filter_type
action find
entity Q11978913
relation P39
type Q12737077
The [ANSWER] was a position held by John Arnstad
['Q11978913', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q11978913 property:P39 ?l }
mayor
The mayor was a position held by John Arnstad
mayor
action filter_type
action find
entity John Arnstad
relation position held
type occupation
['John Arnstad', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:John_Arnstad property:position_held ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30185
P361
Q15617994
USER
Which administrative territory is that occupation a component of ?
(Q30185,P361,c(Q15617994))
action filter_type
action find
entity Q30185
relation P361
type Q15617994
['Q30185', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q30185 property:P361 ?g . ?g rdf:type ontology:Q15617994 }
mayor
action filter_type
action find
entity mayor
relation part of
type designation for an administrative territorial entity
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:mayor property:part_of ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q15284
SYSTEM
municipality
Q15284
(Q30185,P361,c(Q15617994))
action filter_type
action find
entity Q30185
relation P361
type Q15617994
[ANSWER] is that occupation a component of
['Q30185', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q30185 property:P361 ?g . ?g rdf:type ontology:Q15617994 }
municipality
Municipality is that occupation a component of
municipality
action filter_type
action find
entity mayor
relation part of
type designation for an administrative territorial entity
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:mayor property:part_of ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with exactly 5 political territories and administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action equal
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 5
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?a WHERE { { ?a property:P530 ?k . ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } UNION { ?a property:P530 ?k . ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?s = 5 ) }
action equal
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?a WHERE { { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } UNION { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?s = 5 ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
Q36 Q31 Q34
SYSTEM
Poland, Belgium, Sweden
Q45 Q41 Q31 Q36 Q34 Q928 Q739 Q423 Q222 Q902 Q77 Q948
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action equal
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 5
[ANSWERS] have tactful political relations with exactly 5 political territories and administrative territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?a WHERE { { ?a property:P530 ?k . ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } UNION { ?a property:P530 ?k . ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?s = 5 ) }
Portugal Greece Belgium Poland Sweden Philippines Colombia North Korea Albania Bangladesh Uruguay Tunisia
Poland, Belgium and Sweden have tactful political relations with exactly 5 political territories and administrative territories
Poland Belgium Sweden
action equal
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?a WHERE { { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } UNION { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?s = 5 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Are Italy known to have diplomatic connections with those ones ?
(Q38,P530,Q36) (Q38,P530,Q31) (Q38,P530,Q34)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q36'] ['Q38', 'P530', 'Q31'] ['Q38', 'P530', 'Q34']
ASK WHERE { resource:Q38 property:P530 ?o . VALUES ( ?o ) { ( resource:Q45 ) ( resource:Q41 ) ( resource:Q31 ) } }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Poland'] ['Italy', 'diplomatic relation', 'Belgium'] ['Italy', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Italy property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Portugal ) ( resource:Greece ) ( resource:Belgium ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q36) (Q38,P530,Q31) (Q38,P530,Q34)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q36'] ['Q38', 'P530', 'Q31'] ['Q38', 'P530', 'Q34']
ASK WHERE { resource:Q38 property:P530 ?o . VALUES ( ?o ) { ( resource:Q45 ) ( resource:Q41 ) ( resource:Q31 ) } }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Poland'] ['Italy', 'diplomatic relation', 'Belgium'] ['Italy', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Italy property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Portugal ) ( resource:Greece ) ( resource:Belgium ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with atleast 24 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 24
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?e ) WHERE { ?j property:P530 ?q . ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?e >= 24 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 24
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?e ) WHERE { ?j property:diplomatic_relation ?q . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?e >= 24 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
4
Q159 Q155 Q30 Q38
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 24
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?e ) WHERE { ?j property:P530 ?q . ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?e >= 24 ) }
Russia Brazil United States of America Italy
4
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 24
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?e ) WHERE { ?j property:diplomatic_relation ?q . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?e >= 24 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q36
P840
Q15617994 Q166142 Q838948
USER
Which administrative territories are approximately the same number of applications or works of art set in as Poland ?
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q36
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q166142 } UNION { ?k property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q838948 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P840 resource:Q36 . { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?g = ?r ) }
Poland
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Poland
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:application } UNION { ?k property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:work_of_art } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:narrative_location resource:Poland . { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?g = ?r ) }
[]
designation for an administrative territorial entity application work of art
Q230 Q159 Q55
SYSTEM
Georgia, Russia, Netherlands
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q55 Q1948 Q145 Q262 Q148 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q258 Q1979 Q45 Q159 Q41 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q33 Q32 Q31 Q37 Q36 Q34 Q928 Q39 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q869 Q6247
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q36
relation P840
type Q166142
type Q838948
[ANSWERS] are approximately the same number of applications or works of art set in as Poland
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q166142 } UNION { ?k property:P840 ?u . ?u rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q838948 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P840 resource:Q36 . { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?g = ?r ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime Netherlands Manitoba United Kingdom Algeria People's Republic of China Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia South Africa Prince Edward Island Portugal Russia Greece Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Finland Luxembourg Belgium Lithuania Poland Sweden Philippines Switzerland Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Thailand Mantua
Georgia, Russia and Netherlands are approximately the same number of applications or works of art set in as Poland
Georgia Russia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Poland
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?g ) WHERE { { ?k property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:application } UNION { ?k property:narrative_location ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:work_of_art } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:narrative_location resource:Poland . { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?g = ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q843
P840
Q15617994 Q166142 Q838948
USER
And also tell me about Pakistan?
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q843
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) ?o WHERE { VALUES ( ?u ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?b rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P840 resource:Q843 . { ?m rdf:type ?h . VALUES ( ?h ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e = ?w ) }
Pakistan
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Pakistan
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) ?o WHERE { VALUES ( ?u ) { ( ontology:application ) ( ontology:work_of_art ) } . ?b rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:narrative_location resource:Pakistan . { ?m rdf:type ?h . VALUES ( ?h ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?e = ?w ) }
[]
designation for an administrative territorial entity application work of art
Q230 Q36 Q148
SYSTEM
Georgia, Poland, People's Republic of China
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q1948 Q145 Q262 Q148 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q32 Q31 Q37 Q36 Q34 Q928 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q843
relation P840
type Q166142
type Q838948
[ANSWERS]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) ?o WHERE { VALUES ( ?u ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?b rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P840 resource:Q843 . { ?m rdf:type ?h . VALUES ( ?h ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e = ?w ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime Manitoba United Kingdom Algeria People's Republic of China Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Luxembourg Belgium Lithuania Poland Sweden Philippines Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Mantua
Georgia Poland People's Republic of China
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Pakistan
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) ?o WHERE { VALUES ( ?u ) { ( ontology:application ) ( ontology:work_of_art ) } . ?b rdf:type ?u } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:narrative_location resource:Pakistan . { ?m rdf:type ?h . VALUES ( ?h ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?e = ?w ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have ambassadorial relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 . ?t property:P530 ?f } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?u ) WHERE { ?j property:P530 ?m . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?u = ?g ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?f } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?u ) WHERE { ?j property:diplomatic_relation ?m . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?u = ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
To [ANSWER] have ambassadorial relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 . ?t property:P530 ?f } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?u ) WHERE { ?j property:P530 ?m . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?u = ?g ) }
Georgia
To Georgia have ambassadorial relations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?g ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?f } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?u ) WHERE { ?j property:diplomatic_relation ?m . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?u = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P36
Q56061
USER
Which administrative territory is associated to Poland as the capital ?
(Q36,P36,c(Q56061))
action filter_type
action find
entity Q36
relation P36
type Q56061
['Q36', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q36 property:P36 ?u . ?u rdf:type ontology:Q56061 }
Poland
action filter_type
action find
entity Poland
relation capital
type administrative territorial entity
['Poland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Poland property:capital ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270
SYSTEM
Warsaw
Q270
(Q36,P36,c(Q56061))
action filter_type
action find
entity Q36
relation P36
type Q56061
In [ANSWER] is associated to Poland as the capital
['Q36', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q36 property:P36 ?u . ?u rdf:type ontology:Q56061 }
Warsaw
In Warsaw is associated to Poland as the capital
Warsaw
action filter_type
action find
entity Poland
relation capital
type administrative territorial entity
['Poland', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Poland property:capital ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q270
P127
Q483110
USER
Which stadia are owned by that administrative territory ?
(c(Q483110),P127,Q270)
action filter_type
action find_reverse
entity Q270
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q270']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q270 . ?z rdf:type ontology:Q483110 }
Warsaw
action filter_type
action find_reverse
entity Warsaw
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Warsaw']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Warsaw . ?z rdf:type ontology:stadium }
[]
stadium
Q928642 Q1127808
SYSTEM
Polish Army Stadium, Stadion Polonii Warszawa
Q928642 Q1127808
(c(Q483110),P127,Q270)
action filter_type
action find_reverse
entity Q270
relation P127
type Q483110
[ANSWERS] are owned by that administrative territory
[{'concept': 'Q483110'}, 'P127', 'Q270']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q270 . ?z rdf:type ontology:Q483110 }
Polish Army Stadium Stadion Polonii Warszawa
Polish Army Stadium and Stadion Polonii Warszawa are owned by that administrative territory
Polish Army Stadium Stadion Polonii Warszawa
action filter_type
action find_reverse
entity Warsaw
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Warsaw']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Warsaw . ?z rdf:type ontology:stadium }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q230
P35
Q502895
USER
Who are the heads of state of Georgia ?
(Q230,P35,c(Q502895))
action filter_type
action find
entity Q230
relation P35
type Q502895
['Q230', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q230 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Georgia
action filter_type
action find
entity Georgia
relation head of state
type common name
['Georgia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Georgia property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]
common name
Q43330 Q151929 Q229493
SYSTEM
Mikhail Saakashvili, Eduard Shevardnadze, Nino Burjanadze
Q218435 Q229493 Q151929 Q43330 Q13107337
(Q230,P35,c(Q502895))
action filter_type
action find
entity Q230
relation P35
type Q502895
The heads of state of Georgia are [ANSWERS]
['Q230', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q230 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Zviad Gamsakhurdia Nino Burjanadze Eduard Shevardnadze Mikhail Saakashvili Giorgi Margvelashvili
The heads of state of Georgia are Mikhail Saakashvili, Eduard Shevardnadze and Nino Burjanadze
Mikhail Saakashvili Eduard Shevardnadze Nino Burjanadze
action filter_type
action find
entity Georgia
relation head of state
type common name
['Georgia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Georgia property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]