Simple Question (Direct)
Simple Question
Q3241828
P19
Q20667921
USER
Which french administrative division is the birthplace of Lionel Camisuli ?
(Q3241828,P19,c(Q20667921))
action filter_type
action find
entity Q3241828
relation P19
type Q20667921
['Q3241828', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q20667921 . resource:Q3241828 property:P19 ?q }
Lionel Camisuli
action filter_type
action find
entity Lionel Camisuli
relation place of birth
type type of french administrative division
['Lionel Camisuli', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:type_of_french_administrative_division . resource:Lionel_Camisuli property:place_of_birth ?q }
[]
type of french administrative division
Q243317
SYSTEM
Marignane
Q243317
(Q3241828,P19,c(Q20667921))
action filter_type
action find
entity Q3241828
relation P19
type Q20667921
[ANSWER] is the birthplace of Lionel Camisuli
['Q3241828', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q20667921 . resource:Q3241828 property:P19 ?q }
Marignane
Marignane is the birthplace of Lionel Camisuli
Marignane
action filter_type
action find
entity Lionel Camisuli
relation place of birth
type type of french administrative division
['Lionel Camisuli', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:type_of_french_administrative_division . resource:Lionel_Camisuli property:place_of_birth ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q243317
P1376
Q20667921
USER
Which french administrative division has that one has its first city ?
(Q243317,P1376,c(Q20667921))
action filter_type
action find
entity Q243317
relation P1376
type Q20667921
['Q243317', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q243317 property:P1376 ?z . ?z rdf:type ontology:Q20667921 }
Marignane
action filter_type
action find
entity Marignane
relation capital of
type type of french administrative division
['Marignane', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Marignane property:capital_of ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1726097
SYSTEM
canton of Marignane
Q1726097
(Q243317,P1376,c(Q20667921))
action filter_type
action find
entity Q243317
relation P1376
type Q20667921
The [ANSWER] has that one has its first city
['Q243317', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q243317 property:P1376 ?z . ?z rdf:type ontology:Q20667921 }
canton of Marignane
The canton of Marignane has that one has its first city
canton of Marignane
action filter_type
action find
entity Marignane
relation capital of
type type of french administrative division
['Marignane', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Marignane property:capital_of ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1726097 Q19210
P17
Q15617994
USER
Is that french administrative division present in Caraglio ?
(Q1726097,P17,Q19210)
action is_in
entity Q19210
action find
entity Q1726097
relation P17
['Q1726097', 'P17', 'Q19210']
ASK WHERE { resource:Q1726097 property:P17 resource:Q19210 }
canton of Marignane Caraglio
action is_in
entity Caraglio
action find
entity canton of Marignane
relation country
['canton of Marignane', 'country', 'Caraglio']
ASK WHERE { resource:canton_of_Marignane property:country resource:Caraglio }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1726097,P17,Q19210)
action is_in
entity Q19210
action find
entity Q1726097
relation P17
[ANSWER]
['Q1726097', 'P17', 'Q19210']
ASK WHERE { resource:Q1726097 property:P17 resource:Q19210 }
No
action is_in
entity Caraglio
action find
entity canton of Marignane
relation country
['canton of Marignane', 'country', 'Caraglio']
ASK WHERE { resource:canton_of_Marignane property:country resource:Caraglio }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q243317 Q375651
P190
Q515
USER
Is Valašské Meziříčí partner town of Marignane ?
(Q243317,P190,Q375651)
action is_in
entity Q375651
action find
entity Q243317
relation P190
['Q243317', 'P190', 'Q375651']
ASK WHERE { resource:Q243317 property:P190 resource:Q375651 }
Marignane Valašské Meziříčí
action is_in
entity Valašské Meziříčí
action find
entity Marignane
relation sister city
['Marignane', 'sister city', 'Valašské Meziříčí']
ASK WHERE { resource:Marignane property:sister_city resource:Valašské_Meziříčí }
[]
city
SYSTEM
NO
(Q243317,P190,Q375651)
action is_in
entity Q375651
action find
entity Q243317
relation P190
[ANSWER]
['Q243317', 'P190', 'Q375651']
ASK WHERE { resource:Q243317 property:P190 resource:Q375651 }
No
action is_in
entity Valašské Meziříčí
action find
entity Marignane
relation sister city
['Marignane', 'sister city', 'Valašské Meziříčí']
ASK WHERE { resource:Marignane property:sister_city resource:Valašské_Meziříčí }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19737854 Q19210
P27 P17
Q15617994
USER
Which administrative territories are Caraglio situated in or are the countries of citizenship of Selim Pertev Boyar ?
OR((Q19210,P17,c(Q15617994)), (Q19737854,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19210
relation P17
action find
entity Q19737854
relation P27
type Q15617994
{'OR': [['Q19210', 'P17', {'concept': 'Q15617994'}], ['Q19737854', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q19737854 property:P27 ?o } UNION { resource:Q19210 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Selim Pertev Boyar Caraglio
action filter_type
action union
action find
entity Caraglio
relation country
action find
entity Selim Pertev Boyar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Caraglio', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Selim Pertev Boyar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Selim_Pertev_Boyar property:country_of_citizenship ?o } UNION { resource:Caraglio property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q43
SYSTEM
Italy, Turkey
Q38 Q43
OR((Q19210,P17,c(Q15617994)), (Q19737854,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19210
relation P17
action find
entity Q19737854
relation P27
type Q15617994
Caraglio are situated in [ANSWERS] or are the countries of citizenship of Selim Pertev Boyar
{'OR': [['Q19210', 'P17', {'concept': 'Q15617994'}], ['Q19737854', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q19737854 property:P27 ?o } UNION { resource:Q19210 property:P17 ?o } } . ?o rdf:type ontology:Q15617994 }
Italy Turkey
Caraglio are situated in Italy and Turkey or are the countries of citizenship of Selim Pertev Boyar
Italy Turkey
action filter_type
action union
action find
entity Caraglio
relation country
action find
entity Selim Pertev Boyar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Caraglio', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Selim Pertev Boyar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Selim_Pertev_Boyar property:country_of_citizenship ?o } UNION { resource:Caraglio property:country ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q43
P17
Q2221906
USER
Which geographic locations are situated in those administrative territories ?
(c(Q2221906),P17,Q38) (c(Q2221906),P17,Q43)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q2221906
[{'concept': 'Q2221906'}, 'P17', 'Q38'] [{'concept': 'Q2221906'}, 'P17', 'Q43']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Q38 ) ( resource:Q43 ) } . ?q property:P17 ?i . ?q rdf:type ontology:Q2221906 }
Italy Turkey
action filter_type
action find_reverse
entity prev_answer
relation country
type geographic location
[{'concept': 'geographic location'}, 'country', 'Italy'] [{'concept': 'geographic location'}, 'country', 'Turkey']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Italy ) ( resource:Turkey ) } . ?q property:country ?i . ?q rdf:type ontology:geographic_location }
[]
geographic location
Q3088984 Q18869 Q187995
SYSTEM
European Union–Switzerland border, Caucasus, Sarrabus-Gerrei
Q1248675 Q3846790 Q5058285 Q779478 Q962651 Q207989 Q19870 Q160570 Q3664636 Q19865 Q3908808 Q176227 Q771715 Q4721980 Q1248224 Q187995 Q3679669 Q465159 Q3088984 Q753162 Q1127320 Q7453211 Q1030086 Q3860578 Q3857803 Q7371716 Q4345530 Q7419045 Q3717376 Q27861280 Q3503430 Q1248668 Q6029137 Q18869 Q217265 Q1753844 Q3088986 Q171323 Q10734725 Q18639255 Q7855285 Q1049525 Q703480 Q620864
(c(Q2221906),P17,Q38) (c(Q2221906),P17,Q43)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q2221906
[ANSWERS] are situated in those administrative territories
[{'concept': 'Q2221906'}, 'P17', 'Q38'] [{'concept': 'Q2221906'}, 'P17', 'Q43']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Q38 ) ( resource:Q43 ) } . ?q property:P17 ?i . ?q rdf:type ontology:Q2221906 }
Oltrepò Pavese Maremma Grossetana Cellino San Marco Solar Park Sabina Gallura Southern Italy Roero Friuli Archimede solar power plant Langhe Porta San Pellegrino Val di Noto Montalto di Castro Photovoltaic Power Station Alfonsine Solar Park Lomellina Sarrabus-Gerrei Chianti Classico region Giudicarie European Union–Switzerland border Sacri Monti of Piedmont and Lombardy Central Italy Serenissima Solar Park Roman Campagna San Giovanni Theristis Milano Santa Giulia Rovigo Photovoltaic Power Plant Northern Italy Sant'Alberto Solar Park ELETTRA Western Tuscany Sulcis Franciacorta Kordoleon Caucasus Cappadocia Yivli Minare European Union–Turkey border East Thrace Arak Greenway CSP Mersin Solar Tower Plant Turkish Lakes Region Turkish Riviera Letoon Cilicia
European Union–Switzerland border, Caucasus and Sarrabus-Gerrei are situated in those administrative territories
European Union–Switzerland border Caucasus Sarrabus-Gerrei
action filter_type
action find_reverse
entity prev_answer
relation country
type geographic location
[{'concept': 'geographic location'}, 'country', 'Italy'] [{'concept': 'geographic location'}, 'country', 'Turkey']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Italy ) ( resource:Turkey ) } . ?q property:country ?i . ?q rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3088984 Q18869 Q187995
P17
Q15617994
USER
Which administrative territories do those geographic locations belong to ?
(Q3088984,P17,c(Q15617994)) (Q18869,P17,c(Q15617994)) (Q187995,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q3088984', 'P17', {'concept': 'Q15617994'}] ['Q18869', 'P17', {'concept': 'Q15617994'}] ['Q187995', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?a property:P17 ?o . ?o rdf:type ontology:Q15617994 . VALUES ( ?a ) { ( resource:Q1248675 ) ( resource:Q3846790 ) ( resource:Q5058285 ) } }
European Union–Switzerland border Caucasus Sarrabus-Gerrei
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['European Union–Switzerland border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Caucasus', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sarrabus-Gerrei', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?a property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?a ) { ( resource:Oltrepò_Pavese ) ( resource:Maremma_Grossetana ) ( resource:Cellino_San_Marco_Solar_Park ) } }
[]
designation for an administrative territorial entity
Q38 Q38 Q230
SYSTEM
Italy for 1st, 2nd, Georgia for 3rd
Q142 Q39 Q38 Q227 Q230 Q43 Q794 Q399 Q159 Q38
(Q3088984,P17,c(Q15617994)) (Q18869,P17,c(Q15617994)) (Q187995,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS]
['Q3088984', 'P17', {'concept': 'Q15617994'}] ['Q18869', 'P17', {'concept': 'Q15617994'}] ['Q187995', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?a property:P17 ?o . ?o rdf:type ontology:Q15617994 . VALUES ( ?a ) { ( resource:Q1248675 ) ( resource:Q3846790 ) ( resource:Q5058285 ) } }
France Switzerland Italy Azerbaijan Georgia Turkey Iran Armenia Russia Italy
Those geographic locations belong to Italy, Italy and Georgia
Italy Italy Georgia
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['European Union–Switzerland border', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Caucasus', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sarrabus-Gerrei', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?a property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?a ) { ( resource:Oltrepò_Pavese ) ( resource:Maremma_Grossetana ) ( resource:Cellino_San_Marco_Solar_Park ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q230
P530
Q15617994
USER
Which administrative territories have diplomatic relations with that one ?
(c(Q15617994),P530,Q230)
action filter_type
action find_reverse
entity Q230
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q230']
SELECT DISTINCT ?g WHERE { ?g property:P530 resource:Q230 . ?g rdf:type ontology:Q15617994 }
Georgia
action filter_type
action find_reverse
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Georgia']
SELECT DISTINCT ?g WHERE { ?g property:diplomatic_relation resource:Georgia . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q38 Q38 Q230
(c(Q15617994),P530,Q38) (c(Q15617994),P530,Q38) (c(Q15617994),P530,Q230)
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q38'] [{'concept': 'Q15617994'}, 'P530', 'Q38'] [{'concept': 'Q15617994'}, 'P530', 'Q230']
SELECT DISTINCT ?g WHERE { ?g property:P530 resource:Q230 . ?g rdf:type ontology:Q15617994 }
Italy Italy Georgia
Did you mean Italy ?
Italy
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Georgia']
SELECT DISTINCT ?g WHERE { ?g property:diplomatic_relation resource:Georgia . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Georgia. Could you tell me the answer for that?
(c(Q15617994),P530,Q230)
Q230
[{'concept': 'Q15617994'}, 'P530', 'Q230']
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Georgia']
[]
Q184 Q38
SYSTEM
Belarus, Italy
Q184 Q38
(c(Q15617994),P530,Q230)
action filter_type
action find_reverse
entity Q230
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with that one
[{'concept': 'Q15617994'}, 'P530', 'Q230']
SELECT DISTINCT ?g WHERE { ?g property:P530 resource:Q230 . ?g rdf:type ontology:Q15617994 }
Belarus Italy
Belarus and Italy have diplomatic relations with that one
Belarus Italy
action filter_type
action find_reverse
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Georgia']
SELECT DISTINCT ?g WHERE { ?g property:diplomatic_relation resource:Georgia . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q230
P530
Q1048835
USER
How many political territories have diplomatic relations with Georgia ?
(Q230,P530,c(Q1048835))
action count
action filter_type
action find
entity Q230
relation P530
type Q1048835
['Q230', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Q230 property:P530 ?j . ?j rdf:type ontology:Q1048835 }
Georgia
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type political territorial entity
['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Georgia property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
11
Q664 Q408 Q40 Q35 Q183 Q16 Q1000 Q769 Q766 Q778 Q781
(Q230,P530,c(Q1048835))
action count
action filter_type
action find
entity Q230
relation P530
type Q1048835
[ANSWER]
['Q230', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Q230 property:P530 ?j . ?j rdf:type ontology:Q1048835 }
New Zealand Australia Austria Denmark Germany Canada Gabon Grenada Jamaica The Bahamas Antigua and Barbuda
11
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type political territorial entity
['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Georgia property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q962
Q1048835
USER
And also tell me about Benin?
(Q962,P530,c(Q1048835))
action count
action filter_type
action find
entity Q962
relation P530
type Q1048835
['Q962', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q962 property:P530 ?b . ?b rdf:type ontology:Q1048835 }
Benin
action count
action filter_type
action find
entity Benin
relation diplomatic relation
type political territorial entity
['Benin', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Benin property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q962,P530,c(Q1048835))
action count
action filter_type
action find
entity Q962
relation P530
type Q1048835
[ANSWER]
['Q962', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q962 property:P530 ?b . ?b rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Benin
relation diplomatic relation
type political territorial entity
['Benin', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Benin property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity }
[]