Simple Question (Direct)
Simple Question
Q1634983
P27
Q1048835
USER
Which political territory is the country of citizenship of Hugo Efferoth ?
(Q1634983,P27,c(Q1048835))
action filter_type
action find
entity Q1634983
relation P27
type Q1048835
['Q1634983', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1634983 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Hugo Efferoth
action filter_type
action find
entity Hugo Efferoth
relation country of citizenship
type political territorial entity
['Hugo Efferoth', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hugo_Efferoth property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1634983,P27,c(Q1048835))
action filter_type
action find
entity Q1634983
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Hugo Efferoth
['Q1634983', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1634983 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of Hugo Efferoth
Germany
action filter_type
action find
entity Hugo Efferoth
relation country of citizenship
type political territorial entity
['Hugo Efferoth', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hugo_Efferoth property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P194
Q11204
USER
Which legislature is the representative body for that political territory ?
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?m WHERE { resource:Q183 property:P194 ?m . ?m rdf:type ontology:Q11204 }
Germany
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?m WHERE { resource:Germany property:legislative_body ?m . ?m rdf:type ontology:legislature }
[]
legislature
Q146138
SYSTEM
Bundesrat
Q146138
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
[ANSWER] is the representative body for that political territory
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?m WHERE { resource:Q183 property:P194 ?m . ?m rdf:type ontology:Q11204 }
Bundesrat
Bundesrat is the representative body for that political territory
Bundesrat
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?m WHERE { resource:Germany property:legislative_body ?m . ?m rdf:type ontology:legislature }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q146138
P1001
Q1048835
USER
Which political territory comes under the jurisdiction of that legislature ?
(Q146138,P1001,c(Q1048835))
action filter_type
action find
entity Q146138
relation P1001
type Q1048835
['Q146138', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q146138 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
Bundesrat
action filter_type
action find
entity Bundesrat
relation applies to jurisdiction
type political territorial entity
['Bundesrat', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bundesrat property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q146138,P1001,c(Q1048835))
action filter_type
action find
entity Q146138
relation P1001
type Q1048835
The [ANSWER] comes under the jurisdiction of that legislature
['Q146138', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q146138 property:P1001 ?u . ?u rdf:type ontology:Q1048835 }
Germany
The Germany comes under the jurisdiction of that legislature
Germany
action filter_type
action find
entity Bundesrat
relation applies to jurisdiction
type political territorial entity
['Bundesrat', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bundesrat property:applies_to_jurisdiction ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?q property:P530 ?r . ?q rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?v ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?v = ?u ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?q property:diplomatic_relation ?r . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?v ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?v = ?u ) }
[]
designation for an administrative territorial entity political territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] have a diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?q property:P530 ?r . ?q rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?v ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?v = ?u ) }
Italy
Italy have a diplomatic relationship with max number of political territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?k ) WHERE { ?q property:diplomatic_relation ?r . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?v ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?v = ?u ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P127
Q1048835 Q43229 Q2235308
USER
How many political territories are the owners of atmost 1 organizations and ship types ?
(c(Q43229)|c(Q2235308),P127,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q43229
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
value 1
[[{'concept': 'Q43229'}, {'concept': 'Q2235308'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q43229 ) ( ontology:Q2235308 ) } . ?o rdf:type ?z } GROUP BY ?m } . FILTER ( ?a <= 1 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type organization
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
value 1
[[{'concept': 'organization'}, {'concept': 'ship type'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:organization ) ( ontology:ship_type ) } . ?o rdf:type ?z } GROUP BY ?m } . FILTER ( ?a <= 1 ) }
[]
political territorial entity organization ship type
SYSTEM
67
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q43229)|c(Q2235308),P127,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q43229
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
value 1
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q2235308'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q43229 ) ( ontology:Q2235308 ) } . ?o rdf:type ?z } GROUP BY ?m } . FILTER ( ?a <= 1 ) }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
67
action count
action atmost
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type organization
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
value 1
[[{'concept': 'organization'}, {'concept': 'ship type'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:organization ) ( ontology:ship_type ) } . ?o rdf:type ?z } GROUP BY ?m } . FILTER ( ?a <= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P610
Q14524493
USER
Which is the zenith of Germany ?
(Q183,P610,c(Q14524493))
action filter_type
action find
entity Q183
relation P610
type Q14524493
['Q183', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { resource:Q183 property:P610 ?z . ?z rdf:type ontology:Q14524493 }
Germany
action filter_type
action find
entity Germany
relation highest point
type terrain
['Germany', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { resource:Germany property:highest_point ?z . ?z rdf:type ontology:terrain }
[]
terrain
Q3375
SYSTEM
Zugspitze
Q3375
(Q183,P610,c(Q14524493))
action filter_type
action find
entity Q183
relation P610
type Q14524493
The zenith of Germany is the [ANSWER]
['Q183', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?z WHERE { resource:Q183 property:P610 ?z . ?z rdf:type ontology:Q14524493 }
Zugspitze
The zenith of Germany is the Zugspitze
Zugspitze
action filter_type
action find
entity Germany
relation highest point
type terrain
['Germany', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?z WHERE { resource:Germany property:highest_point ?z . ?z rdf:type ontology:terrain }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1036
Q14524493
USER
And how about Uganda?
(Q1036,P610,c(Q14524493))
action filter_type
action find
entity Q1036
relation P610
type Q14524493
['Q1036', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { resource:Q1036 property:P610 ?c . ?c rdf:type ontology:Q14524493 }
Uganda
action filter_type
action find
entity Uganda
relation highest point
type terrain
['Uganda', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { resource:Uganda property:highest_point ?c . ?c rdf:type ontology:terrain }
[]
terrain
Q221666
SYSTEM
Mount Stanley
Q221666
(Q1036,P610,c(Q14524493))
action filter_type
action find
entity Q1036
relation P610
type Q14524493
[ANSWER]
['Q1036', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { resource:Q1036 property:P610 ?c . ?c rdf:type ontology:Q14524493 }
Mount Stanley
Mount Stanley
action filter_type
action find
entity Uganda
relation highest point
type terrain
['Uganda', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { resource:Uganda property:highest_point ?c . ?c rdf:type ontology:terrain }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q221666 Q15
P30
Q2221906
USER
Is Africa that terrain located ?
(Q221666,P30,Q15)
action is_in
entity Q15
action find
entity Q221666
relation P30
['Q221666', 'P30', 'Q15']
ASK WHERE { resource:Q221666 property:P30 resource:Q15 }
Mount Stanley Africa
action is_in
entity Africa
action find
entity Mount Stanley
relation continent
['Mount Stanley', 'continent', 'Africa']
ASK WHERE { resource:Mount_Stanley property:continent resource:Africa }
[]
geographic location
SYSTEM
YES
(Q221666,P30,Q15)
action is_in
entity Q15
action find
entity Q221666
relation P30
[ANSWER]
['Q221666', 'P30', 'Q15']
ASK WHERE { resource:Q221666 property:P30 resource:Q15 }
Yes
action is_in
entity Africa
action find
entity Mount Stanley
relation continent
['Mount Stanley', 'continent', 'Africa']
ASK WHERE { resource:Mount_Stanley property:continent resource:Africa }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q40 Q664
P530
Q1048835
USER
Does Germany have diplomatic relations with Austria and New Zealand ?
(Q183,P530,Q40) (Q183,P530,Q664)
action is_in
entity Q183
action intersection
action find_reverse
entity Q40
relation P530
action find_reverse
entity Q664
relation P530
['Q183', 'P530', 'Q40'] ['Q183', 'P530', 'Q664']
ASK WHERE { resource:Q183 property:P530 resource:Q40 . resource:Q183 property:P530 resource:Q664 }
Germany Austria New Zealand
action is_in
entity Germany
action intersection
action find_reverse
entity Austria
relation diplomatic relation
action find_reverse
entity New Zealand
relation diplomatic relation
['Germany', 'diplomatic relation', 'Austria'] ['Germany', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Austria . resource:Germany property:diplomatic_relation resource:New_Zealand }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q40) (Q183,P530,Q664)
action is_in
entity Q183
action intersection
action find_reverse
entity Q40
relation P530
action find_reverse
entity Q664
relation P530
[ANSWER]
['Q183', 'P530', 'Q40'] ['Q183', 'P530', 'Q664']
ASK WHERE { resource:Q183 property:P530 resource:Q40 . resource:Q183 property:P530 resource:Q664 }
Yes
action is_in
entity Germany
action intersection
action find_reverse
entity Austria
relation diplomatic relation
action find_reverse
entity New Zealand
relation diplomatic relation
['Germany', 'diplomatic relation', 'Austria'] ['Germany', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Austria . resource:Germany property:diplomatic_relation resource:New_Zealand }
[]