Simple Question (Direct)
Simple Question
Q1152828
P47
Q20667921
USER
Which french administrative divisions share border with Ginestas ?
(Q1152828,P47,c(Q20667921))
action filter_type
action find
entity Q1152828
relation P47
type Q20667921
['Q1152828', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1152828 property:P47 ?d . ?d rdf:type ontology:Q20667921 }
Ginestas
action filter_type
action find
entity Ginestas
relation shares border with
type type of french administrative division
['Ginestas', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Ginestas property:shares_border_with ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1018288 Q625564 Q192294
SYSTEM
Bize-Minervois, Sallèles-d'Aude, Argeliers
Q1082086 Q177018 Q1018288 Q192074 Q203566 Q1086780 Q625564 Q192294
(Q1152828,P47,c(Q20667921))
action filter_type
action find
entity Q1152828
relation P47
type Q20667921
[ANSWERS] share border with Ginestas
['Q1152828', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q1152828 property:P47 ?d . ?d rdf:type ontology:Q20667921 }
Sainte-Valière Mirepeisset Bize-Minervois Saint-Marcel-sur-Aude Saint-Nazaire-d'Aude Ventenac-en-Minervois Sallèles-d'Aude Argeliers
Bize-Minervois, Sallèles-d'Aude and Argeliers share border with Ginestas
Bize-Minervois Sallèles-d'Aude Argeliers
action filter_type
action find
entity Ginestas
relation shares border with
type type of french administrative division
['Ginestas', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Ginestas property:shares_border_with ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1018288
P20
Q502895
USER
Which person has Bize-Minervois as the location of death ?
(c(Q502895),P20,Q1018288)
action filter_type
action find_reverse
entity Q1018288
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1018288']
SELECT DISTINCT ?m WHERE { ?m property:P20 resource:Q1018288 . ?m rdf:type ontology:Q502895 }
Bize-Minervois
action filter_type
action find_reverse
entity Bize-Minervois
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Bize-Minervois']
SELECT DISTINCT ?m WHERE { ?m property:place_of_death resource:Bize-Minervois . ?m rdf:type ontology:common_name }
[]
common name
Q2830915
SYSTEM
Albert Ambert
Q2830915
(c(Q502895),P20,Q1018288)
action filter_type
action find_reverse
entity Q1018288
relation P20
type Q502895
[ANSWER] has Bize-Minervois as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q1018288']
SELECT DISTINCT ?m WHERE { ?m property:P20 resource:Q1018288 . ?m rdf:type ontology:Q502895 }
Albert Ambert
Albert Ambert has Bize-Minervois as the location of death
Albert Ambert
action filter_type
action find_reverse
entity Bize-Minervois
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Bize-Minervois']
SELECT DISTINCT ?m WHERE { ?m property:place_of_death resource:Bize-Minervois . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1018288
P17
Q15617994
USER
Which administrative territory is that french administrative division situated in ?
(Q2830915,P17,c(Q15617994))
action filter_type
action find
entity Q1018288
relation P17
type Q15617994
['Q2830915', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1018288 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Bize-Minervois
action filter_type
action find
entity Bize-Minervois
relation country
type designation for an administrative territorial entity
['Albert Ambert', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Bize-Minervois property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2830915,P17,c(Q15617994))
action filter_type
action find
entity Q1018288
relation P17
type Q15617994
That french administrative division is situated in [ANSWER]
['Q2830915', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1018288 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
France
That french administrative division is situated in France
France
action filter_type
action find
entity Bize-Minervois
relation country
type designation for an administrative territorial entity
['Albert Ambert', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Bize-Minervois property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3915306 Q1018288
P17
Q15617994
USER
Or Ali?
OR((Q1018288,P17,c(Q15617994)), (Q3915306,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1018288
relation P17
action find
entity Q3915306
relation P17
type Q15617994
{'OR': [['Q1018288', 'P17', {'concept': 'Q15617994'}], ['Q3915306', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q1018288 property:P17 ?k } UNION { resource:Q3915306 property:P17 ?k } } }
Ali Bize-Minervois
action filter_type
action union
action find
entity Bize-Minervois
relation country
action find
entity Ali
relation country
type designation for an administrative territorial entity
{'OR': [['Bize-Minervois', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ali', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Bize-Minervois property:country ?k } UNION { resource:Ali property:country ?k } } }
[]
designation for an administrative territorial entity
Q142 Q230
SYSTEM
France, Georgia
Q142 Q230
OR((Q1018288,P17,c(Q15617994)), (Q3915306,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1018288
relation P17
action find
entity Q3915306
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q1018288', 'P17', {'concept': 'Q15617994'}], ['Q3915306', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q1018288 property:P17 ?k } UNION { resource:Q3915306 property:P17 ?k } } }
France Georgia
France Georgia
action filter_type
action union
action find
entity Bize-Minervois
relation country
action find
entity Ali
relation country
type designation for an administrative territorial entity
{'OR': [['Bize-Minervois', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ali', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Bize-Minervois property:country ?k } UNION { resource:Ali property:country ?k } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship 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 ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?c ) WHERE { ?d property:P530 ?p . ?d rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?d } } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?l ) WHERE { ?a property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } }
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 ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?c ) WHERE { ?d property:diplomatic_relation ?p . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?l ) WHERE { ?a property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
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 a diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?c ) WHERE { ?d property:P530 ?p . ?d rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?d } } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?l ) WHERE { ?a property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } }
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 a diplomatic relationship 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 ?a WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?c ) WHERE { ?d property:diplomatic_relation ?p . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?l ) WHERE { ?a property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P530
Q15617994 Q1048835
USER
How many administrative territories and political territories holds diplomatic relationship with France ?
(Q142,P530,c(Q15617994)) (Q142,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q142
relation P530
type Q15617994
action filter_type
action find
entity Q142
relation P530
type Q1048835
['Q142', 'P530', {'concept': 'Q15617994'}] ['Q142', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } }
France
action count
action union
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity France
relation diplomatic relation
type political territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['France', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
15 administrative territories and 3 political territories
Q711 Q159 Q222 Q801 Q145 Q155 Q1011 Q228 Q32 Q17 Q30 Q183 Q408 Q399 Q27 Q403 Q38 Q40
(Q142,P530,c(Q15617994)) (Q142,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q142
relation P530
type Q15617994
action filter_type
action find
entity Q142
relation P530
type Q1048835
[ANSWER]
['Q142', 'P530', {'concept': 'Q15617994'}] ['Q142', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } }
Mongolia Russia Albania Israel United Kingdom Brazil Cape Verde Andorra Luxembourg Japan United States of America Germany Australia Armenia Ireland Serbia Italy Austria
15 administrative territories and 3 political territories
action count
action union
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity France
relation diplomatic relation
type political territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['France', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q232
P740
Q2088357
USER
Which is the musical ensemble that originates at Kazakhstan ?
(c(Q2088357),P740,Q232)
action filter_type
action find_reverse
entity Q232
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q232']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2088357 . ?q property:P740 resource:Q232 }
Kazakhstan
action filter_type
action find_reverse
entity Kazakhstan
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Kazakhstan']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:musical_ensemble . ?q property:location_of_formation resource:Kazakhstan }
[]
musical ensemble
Q1093161
SYSTEM
Ulytau
Q1093161
(c(Q2088357),P740,Q232)
action filter_type
action find_reverse
entity Q232
relation P740
type Q2088357
[ANSWER] is the musical ensemble that originates at Kazakhstan
[{'concept': 'Q2088357'}, 'P740', 'Q232']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2088357 . ?q property:P740 resource:Q232 }
Ulytau
Ulytau is the musical ensemble that originates at Kazakhstan
Ulytau
action filter_type
action find_reverse
entity Kazakhstan
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Kazakhstan']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:musical_ensemble . ?q property:location_of_formation resource:Kazakhstan }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q232
P1376
Q56061
USER
What is the capital of Kazakhstan ?
(c(Q56061),P1376,Q232)
action filter_type
action find_reverse
entity Q232
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q232']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q232 . ?u rdf:type ontology:Q56061 }
Kazakhstan
action filter_type
action find_reverse
entity Kazakhstan
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kazakhstan']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Kazakhstan . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1520
SYSTEM
Astana
Q1520
(c(Q56061),P1376,Q232)
action filter_type
action find_reverse
entity Q232
relation P1376
type Q56061
The capital of Kazakhstan is [ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q232']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q232 . ?u rdf:type ontology:Q56061 }
Astana
The capital of Kazakhstan is Astana
Astana
action filter_type
action find_reverse
entity Kazakhstan
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kazakhstan']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Kazakhstan . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q232
P85
Q484692
USER
Which hymn is the anthem for that administrative territory ?
(Q1520,P85,c(Q484692))
action filter_type
action find
entity Q232
relation P85
type Q484692
['Q1520', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?s WHERE { resource:Q232 property:P85 ?s . ?s rdf:type ontology:Q484692 }
Kazakhstan
action filter_type
action find
entity Kazakhstan
relation anthem
type hymn
['Astana', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?s WHERE { resource:Kazakhstan property:anthem ?s . ?s rdf:type ontology:hymn }
[]
hymn
Q754928
SYSTEM
Meniñ Qazaqstanım
Q754928
(Q1520,P85,c(Q484692))
action filter_type
action find
entity Q232
relation P85
type Q484692
[ANSWER] is the anthem for that administrative territory
['Q1520', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?s WHERE { resource:Q232 property:P85 ?s . ?s rdf:type ontology:Q484692 }
Meniñ Qazaqstanım
Meniñ Qazaqstanım is the anthem for that administrative territory
Meniñ Qazaqstanım
action filter_type
action find
entity Kazakhstan
relation anthem
type hymn
['Astana', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?s WHERE { resource:Kazakhstan property:anthem ?s . ?s rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q754928
P86
Q502895
USER
Who wrote the music for that hymn ?
(Q754928,P86,c(Q502895))
action filter_type
action find
entity Q754928
relation P86
type Q502895
['Q754928', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q754928 property:P86 ?b . ?b rdf:type ontology:Q502895 }
Meniñ Qazaqstanım
action filter_type
action find
entity Meniñ Qazaqstanım
relation composer
type common name
['Meniñ Qazaqstanım', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Meniñ_Qazaqstanım property:composer ?b . ?b rdf:type ontology:common_name }
[]
common name
Q1036808
SYSTEM
Shamshi Kaldayakov
Q1036808
(Q754928,P86,c(Q502895))
action filter_type
action find
entity Q754928
relation P86
type Q502895
[ANSWER] wrote the music for that hymn
['Q754928', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q754928 property:P86 ?b . ?b rdf:type ontology:Q502895 }
Shamshi Kaldayakov
Shamshi Kaldayakov wrote the music for that hymn
Shamshi Kaldayakov
action filter_type
action find
entity Meniñ Qazaqstanım
relation composer
type common name
['Meniñ Qazaqstanım', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Meniñ_Qazaqstanım property:composer ?b . ?b rdf:type ontology:common_name }
[]