Simple Question (Direct)
Simple Question
Q1676863
P17
Q15617994
USER
Which administrative territory is Jablonec nad Jizerou situated in ?
(Q1676863,P17,c(Q15617994))
action filter_type
action find
entity Q1676863
relation P17
type Q15617994
['Q1676863', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1676863 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Jablonec nad Jizerou
action filter_type
action find
entity Jablonec nad Jizerou
relation country
type designation for an administrative territorial entity
['Jablonec nad Jizerou', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Jablonec_nad_Jizerou property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
(Q1676863,P17,c(Q15617994))
action filter_type
action find
entity Q1676863
relation P17
type Q15617994
Which administrative territory is Jablonec nad Jizerou situated in
['Q1676863', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1676863 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Czech Republic
Which administrative territory is Jablonec nad Jizerou situated in
Czech Republic
action filter_type
action find
entity Jablonec nad Jizerou
relation country
type designation for an administrative territorial entity
['Jablonec nad Jizerou', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Jablonec_nad_Jizerou property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q213
P1532
Q1194951
USER
Who plays for that administrative territory ?
(c(Q1194951),P1532,Q213)
action filter_type
action find_reverse
entity Q213
relation P1532
type Q1194951
[{'concept': 'Q1194951'}, 'P1532', 'Q213']
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q213 . ?i rdf:type ontology:Q1194951 }
Czech Republic
action filter_type
action find_reverse
entity Czech Republic
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Czech Republic']
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Czech_Republic . ?i rdf:type ontology:national_sports_team }
[]
national sports team
Q483868
SYSTEM
Czech Republic national football team
Q483868
(c(Q1194951),P1532,Q213)
action filter_type
action find_reverse
entity Q213
relation P1532
type Q1194951
[ANSWER] plays for that administrative territory
[{'concept': 'Q1194951'}, 'P1532', 'Q213']
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q213 . ?i rdf:type ontology:Q1194951 }
Czech Republic national football team
Czech Republic national football team plays for that administrative territory
Czech Republic national football team
action filter_type
action find_reverse
entity Czech Republic
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Czech Republic']
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Czech_Republic . ?i rdf:type ontology:national_sports_team }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?v ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?w ) WHERE { ?u property:P530 ?z . ?u rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?w = ?v ) }
action argmin
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', 'Zambia']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?v ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?w ) WHERE { ?u property:diplomatic_relation ?z . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?w = ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?v ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?w ) WHERE { ?u property:P530 ?z . ?u rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?w = ?v ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
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', 'Zambia']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?v ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?w ) WHERE { ?u property:diplomatic_relation ?z . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?w = ?v ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q232
P915
Q15416
USER
Which television program was filmed at Kazakhstan ?
(c(Q15416),P915,Q232)
action filter_type
action find_reverse
entity Q232
relation P915
type Q15416
[{'concept': 'Q15416'}, 'P915', 'Q232']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15416 . ?h property:P915 resource:Q232 }
Kazakhstan
action filter_type
action find_reverse
entity Kazakhstan
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Kazakhstan']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:television_program . ?h property:filming_location resource:Kazakhstan }
[]
television program
Q20971282
SYSTEM
Grensland
Q20971282
(c(Q15416),P915,Q232)
action filter_type
action find_reverse
entity Q232
relation P915
type Q15416
[ANSWER] was filmed at Kazakhstan
[{'concept': 'Q15416'}, 'P915', 'Q232']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15416 . ?h property:P915 resource:Q232 }
Grensland
Grensland was filmed at Kazakhstan
Grensland
action filter_type
action find_reverse
entity Kazakhstan
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Kazakhstan']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:television_program . ?h property:filming_location resource:Kazakhstan }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q232
P163
Q14660
USER
What is associated with Kazakhstan ?
(Q232,P163,c(Q14660))
action filter_type
action find
entity Q232
relation P163
type Q14660
['Q232', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { resource:Q232 property:P163 ?o . ?o rdf:type ontology:Q14660 }
Kazakhstan
action filter_type
action find
entity Kazakhstan
relation flag
type flag
['Kazakhstan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { resource:Kazakhstan property:flag ?o . ?o rdf:type ontology:flag }
[]
flag
Q131650
SYSTEM
flag of Kazakhstan
Q131650
(Q232,P163,c(Q14660))
action filter_type
action find
entity Q232
relation P163
type Q14660
And [ANSWER] is associated with Kazakhstan
['Q232', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { resource:Q232 property:P163 ?o . ?o rdf:type ontology:Q14660 }
flag of Kazakhstan
And flag of Kazakhstan is associated with Kazakhstan
flag of Kazakhstan
action filter_type
action find
entity Kazakhstan
relation flag
type flag
['Kazakhstan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { resource:Kazakhstan property:flag ?o . ?o rdf:type ontology:flag }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q954 Q232
P163
Q14660
USER
Or Zimbabwe?
OR((Q232,P163,c(Q14660)), (Q954,P163,c(Q14660)))
action filter_type
action union
action find
entity Q232
relation P163
action find
entity Q954
relation P163
type Q14660
{'OR': [['Q232', 'P163', {'concept': 'Q14660'}], ['Q954', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q954 property:P163 ?j } UNION { resource:Q232 property:P163 ?j } } . ?j rdf:type ontology:Q14660 }
Zimbabwe Kazakhstan
action filter_type
action union
action find
entity Kazakhstan
relation flag
action find
entity Zimbabwe
relation flag
type flag
{'OR': [['Kazakhstan', 'flag', {'concept': 'flag'}], ['Zimbabwe', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Zimbabwe property:flag ?j } UNION { resource:Kazakhstan property:flag ?j } } . ?j rdf:type ontology:flag }
[]
flag
Q159986 Q131650
SYSTEM
Flag of Zimbabwe, flag of Kazakhstan
Q159986 Q131650
OR((Q232,P163,c(Q14660)), (Q954,P163,c(Q14660)))
action filter_type
action union
action find
entity Q232
relation P163
action find
entity Q954
relation P163
type Q14660
[ANSWERS]
{'OR': [['Q232', 'P163', {'concept': 'Q14660'}], ['Q954', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q954 property:P163 ?j } UNION { resource:Q232 property:P163 ?j } } . ?j rdf:type ontology:Q14660 }
Flag of Zimbabwe flag of Kazakhstan
Flag of Zimbabwe flag of Kazakhstan
action filter_type
action union
action find
entity Kazakhstan
relation flag
action find
entity Zimbabwe
relation flag
type flag
{'OR': [['Kazakhstan', 'flag', {'concept': 'flag'}], ['Zimbabwe', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Zimbabwe property:flag ?j } UNION { resource:Kazakhstan property:flag ?j } } . ?j rdf:type ontology:flag }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1001
Q56061 Q14660
USER
How many flags have control over the jurisdiction of around the same number of administrative territories as that flag ?
(c(Q14660),P1001,c(Q56061))
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1001 ?y . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q56061 }
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:applies_to_jurisdiction ?y . ?z rdf:type ontology:flag . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity flag
Comparative|Count over More/Less|Single entity type|Clarification
Q131650
SYSTEM
Did you mean flag of Kazakhstan ?
(c(Q14660),P1001,c(Q56061))
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1001 ?y . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q56061 }
Did you mean flag of Kazakhstan ?
flag of Kazakhstan
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:applies_to_jurisdiction ?y . ?z rdf:type ontology:flag . ?y rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q14660),P1001,c(Q56061))
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
16
Q483659 Q328889 Q600147 Q235829 Q618036 Q224972 Q241781 Q204666 Q19810326 Q659058 Q463964 Q242502 Q1414813 Q202610 Q429900 Q79198
(c(Q14660),P1001,c(Q56061))
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1001 ?y . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q56061 }
Flag of Singapore Flag of the Northern Mariana Islands Flag of the City of Madrid flag of Guam Flag of Toronto Flag of the Canary Islands Flag of Madeira Flag of US Virgin Islands flag of Dzisna flag of Paris Flag of Northern Ireland Flag of American Samoa Flag of New York City flag of Åland Flag of Saba Flag of Vatican City
16
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:applies_to_jurisdiction ?y . ?z rdf:type ontology:flag . ?y rdf:type ontology:administrative_territorial_entity }
[]