Simple Question (Direct)
Simple Question
Q3767981
P20
Q56061
USER
Where did the demise of Giovanni Prodi occur ?
(Q3767981,P20,c(Q56061))
action filter_type
action find
entity Q3767981
relation P20
type Q56061
['Q3767981', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3767981 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Giovanni Prodi
action filter_type
action find
entity Giovanni Prodi
relation place of death
type administrative territorial entity
['Giovanni Prodi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Giovanni_Prodi property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q13375
SYSTEM
Pisa
Q13375
(Q3767981,P20,c(Q56061))
action filter_type
action find
entity Q3767981
relation P20
type Q56061
The demise of Giovanni Prodi occurred in [ANSWER]
['Q3767981', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3767981 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Pisa
The demise of Giovanni Prodi occurred in Pisa
Pisa
action filter_type
action find
entity Giovanni Prodi
relation place of death
type administrative territorial entity
['Giovanni Prodi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Giovanni_Prodi property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3767981
P7
Q502895
USER
Who are the brother of Giovanni Prodi ?
(Q3767981,P7,c(Q502895))
action filter_type
action find
entity Q3767981
relation P7
type Q502895
['Q3767981', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q3767981 property:P7 ?p . ?p rdf:type ontology:Q502895 }
Giovanni Prodi
action filter_type
action find
entity Giovanni Prodi
relation brother
type common name
['Giovanni Prodi', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Giovanni_Prodi property:brother ?p . ?p rdf:type ontology:common_name }
[]
common name
Q38484 Q744324 Q3894406
SYSTEM
Romano Prodi, Vittorio Prodi, Paolo Prodi
Q3742011 Q3894406 Q744324 Q38484 Q3751532
(Q3767981,P7,c(Q502895))
action filter_type
action find
entity Q3767981
relation P7
type Q502895
The brother of Giovanni Prodi are [ANSWERS]
['Q3767981', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q3767981 property:P7 ?p . ?p rdf:type ontology:Q502895 }
Giorgio Prodi Paolo Prodi Vittorio Prodi Romano Prodi Franco Prodi
The brother of Giovanni Prodi are Romano Prodi, Vittorio Prodi and Paolo Prodi
Romano Prodi Vittorio Prodi Paolo Prodi
action filter_type
action find
entity Giovanni Prodi
relation brother
type common name
['Giovanni Prodi', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Giovanni_Prodi property:brother ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3894406
P21
Q290
USER
What is the sex of Paolo Prodi ?
(Q3894406,P21,c(Q290))
action filter_type
action find
entity Q3894406
relation P21
type Q290
['Q3894406', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q3894406 property:P21 ?l }
Paolo Prodi
action filter_type
action find
entity Paolo Prodi
relation gender
type sex
['Paolo Prodi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Paolo_Prodi property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3894406,P21,c(Q290))
action filter_type
action find
entity Q3894406
relation P21
type Q290
The sex of Paolo Prodi is the [ANSWER]
['Q3894406', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q3894406 property:P21 ?l }
male
The sex of Paolo Prodi is the male
male
action filter_type
action find
entity Paolo Prodi
relation gender
type sex
['Paolo Prodi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Paolo_Prodi property:gender ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q5258975
P21
Q502895
USER
Does Dennis Springer have that sex as the sex ?
(Q5258975,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q5258975
relation P21
['Q5258975', 'P21', 'Q6581097']
ASK WHERE { resource:Q5258975 property:P21 resource:Q6581097 }
male Dennis Springer
action is_in
entity male
action find
entity Dennis Springer
relation gender
['Dennis Springer', 'gender', 'male']
ASK WHERE { resource:Dennis_Springer property:gender resource:male }
[]
common name
SYSTEM
YES
(Q5258975,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q5258975
relation P21
[ANSWER]
['Q5258975', 'P21', 'Q6581097']
ASK WHERE { resource:Q5258975 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Dennis Springer
relation gender
['Dennis Springer', 'gender', 'male']
ASK WHERE { resource:Dennis_Springer property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3128141 Q3767981
P27
Q15617994
USER
Which administrative territories are the native countriesof Giovanni Prodi or Hassan Hakmoun ?
OR((Q3767981,P27,c(Q15617994)), (Q3128141,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3767981
relation P27
action find
entity Q3128141
relation P27
type Q15617994
{'OR': [['Q3767981', 'P27', {'concept': 'Q15617994'}], ['Q3128141', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q3767981 property:P27 ?w } UNION { resource:Q3128141 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Hassan Hakmoun Giovanni Prodi
action filter_type
action union
action find
entity Giovanni Prodi
relation country of citizenship
action find
entity Hassan Hakmoun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Giovanni Prodi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hassan Hakmoun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Giovanni_Prodi property:country_of_citizenship ?w } UNION { resource:Hassan_Hakmoun property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q1028
SYSTEM
Italy, Morocco
Q38 Q1028
OR((Q3767981,P27,c(Q15617994)), (Q3128141,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3767981
relation P27
action find
entity Q3128141
relation P27
type Q15617994
[ANSWERS] are the native countriesof Giovanni Prodi or Hassan Hakmoun
{'OR': [['Q3767981', 'P27', {'concept': 'Q15617994'}], ['Q3128141', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q3767981 property:P27 ?w } UNION { resource:Q3128141 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Italy Morocco
Italy and Morocco are the native countriesof Giovanni Prodi or Hassan Hakmoun
Italy Morocco
action filter_type
action union
action find
entity Giovanni Prodi
relation country of citizenship
action find
entity Hassan Hakmoun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Giovanni Prodi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hassan Hakmoun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Giovanni_Prodi property:country_of_citizenship ?w } UNION { resource:Hassan_Hakmoun property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5031665
P27
Q502895
USER
Are Candi Devine a citizen of those administrative territories ?
(Q5031665,P27,Q38) (Q5031665,P27,Q1028)
action is_in
entity prev_answer
action find
entity Q5031665
relation P27
['Q5031665', 'P27', 'Q38'] ['Q5031665', 'P27', 'Q1028']
ASK WHERE { resource:Q5031665 property:P27 ?s . VALUES ( ?s ) { ( resource:Q38 ) ( resource:Q1028 ) } }
Candi Devine
action is_in
entity prev_answer
action find
entity Candi Devine
relation country of citizenship
['Candi Devine', 'country of citizenship', 'Italy'] ['Candi Devine', 'country of citizenship', 'Morocco']
ASK WHERE { resource:Candi_Devine property:country_of_citizenship ?s . VALUES ( ?s ) { ( resource:Italy ) ( resource:Morocco ) } }
[]
common name
SYSTEM
NO
(Q5031665,P27,Q38) (Q5031665,P27,Q1028)
action is_in
entity prev_answer
action find
entity Q5031665
relation P27
[ANSWER]
['Q5031665', 'P27', 'Q38'] ['Q5031665', 'P27', 'Q1028']
ASK WHERE { resource:Q5031665 property:P27 ?s . VALUES ( ?s ) { ( resource:Q38 ) ( resource:Q1028 ) } }
No
action is_in
entity prev_answer
action find
entity Candi Devine
relation country of citizenship
['Candi Devine', 'country of citizenship', 'Italy'] ['Candi Devine', 'country of citizenship', 'Morocco']
ASK WHERE { resource:Candi_Devine property:country_of_citizenship ?s . VALUES ( ?s ) { ( resource:Italy ) ( resource:Morocco ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P47
Q56061 Q15617994
USER
How many administrative territories and administrative territories share the border with Italy ?
(Q38,P47,c(Q56061)) (Q38,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q56061
action filter_type
action find
entity Q38
relation P47
type Q15617994
['Q38', 'P47', {'concept': 'Q56061'}] ['Q38', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { resource:Q38 property:P47 ?b . ?b rdf:type ontology:Q15617994 } UNION { resource:Q38 property:P47 ?b . ?b rdf:type ontology:Q56061 } }
Italy
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'administrative territorial entity'}] ['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { resource:Italy property:shares_border_with ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Italy property:shares_border_with ?b . ?b rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
5
Q142 Q39 Q237 Q238 Q215
(Q38,P47,c(Q56061)) (Q38,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q56061
action filter_type
action find
entity Q38
relation P47
type Q15617994
[ANSWER]
['Q38', 'P47', {'concept': 'Q56061'}] ['Q38', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { resource:Q38 property:P47 ?b . ?b rdf:type ontology:Q15617994 } UNION { resource:Q38 property:P47 ?b . ?b rdf:type ontology:Q56061 } }
France Switzerland Vatican City San Marino Slovenia
5
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'administrative territorial entity'}] ['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { resource:Italy property:shares_border_with ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Italy property:shares_border_with ?b . ?b rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q13375 Q66317
P47
Q13220204
USER
How many administrative country subdivisions are adjacent to Pisa or Güttingen ?
(Q13375,P47,c(Q13220204)) (Q66317,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q13375
relation P47
type Q13220204
action filter_type
action find
entity Q66317
relation P47
type Q13220204
['Q13375', 'P47', {'concept': 'Q13220204'}] ['Q66317', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?t ) { ( resource:Q13375 ) ( resource:Q66317 ) } . ?t property:P47 ?c }
Pisa Güttingen
action count
action union
action filter_type
action find
entity Pisa
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Güttingen
relation shares border with
type second-level administrative country subdivision
['Pisa', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Güttingen', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?t ) { ( resource:Pisa ) ( resource:Güttingen ) } . ?t property:shares_border_with ?c }
[]
second-level administrative country subdivision
SYSTEM
2
Q66641 Q66312
(Q13375,P47,c(Q13220204)) (Q66317,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q13375
relation P47
type Q13220204
action filter_type
action find
entity Q66317
relation P47
type Q13220204
[ANSWER]
['Q13375', 'P47', {'concept': 'Q13220204'}] ['Q66317', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?t ) { ( resource:Q13375 ) ( resource:Q66317 ) } . ?t property:P47 ?c }
Sommeri Langrickenbach
2
action count
action union
action filter_type
action find
entity Pisa
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Güttingen
relation shares border with
type second-level administrative country subdivision
['Pisa', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Güttingen', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?t ) { ( resource:Pisa ) ( resource:Güttingen ) } . ?t property:shares_border_with ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13375
P1376
Q15089
USER
Which province of Italy has that administrative territory as its county seat ?
action filter_type
action find
entity Q13375
relation P1376
type Q15089
SELECT DISTINCT ?m WHERE { resource:Q13375 property:P1376 ?m . ?m rdf:type ontology:Q15089 }
Pisa
action filter_type
action find
entity Pisa
relation capital of
type province of Italy
SELECT DISTINCT ?m WHERE { resource:Pisa property:capital_of ?m . ?m rdf:type ontology:province_of_Italy }
[]
province of Italy
Q16244
SYSTEM
Province of Pisa
Q16244
action filter_type
action find
entity Q13375
relation P1376
type Q15089
The [ANSWER] has that administrative territory as its county seat
SELECT DISTINCT ?m WHERE { resource:Q13375 property:P1376 ?m . ?m rdf:type ontology:Q15089 }
Province of Pisa
The Province of Pisa has that administrative territory as its county seat
Province of Pisa
action filter_type
action find
entity Pisa
relation capital of
type province of Italy
SELECT DISTINCT ?m WHERE { resource:Pisa property:capital_of ?m . ?m rdf:type ontology:province_of_Italy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P36
Q56061
USER
How many administrative territories are the capitals of that province of Italy ?
(Q16244,P36,c(Q56061))
action count
action filter_type
action find
entity Q16244
relation P36
type Q56061
['Q16244', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q16244 property:P36 ?q . ?q rdf:type ontology:Q56061 }
action count
action filter_type
action find
entity Province of Pisa
relation capital
type administrative territorial entity
['Province of Pisa', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Province_of_Pisa property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q13375
(Q16244,P36,c(Q56061))
action count
action filter_type
action find
entity Q16244
relation P36
type Q56061
[ANSWER]
['Q16244', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q16244 property:P36 ?q . ?q rdf:type ontology:Q56061 }
Pisa
1
action count
action filter_type
action find
entity Province of Pisa
relation capital
type administrative territorial entity
['Province of Pisa', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Province_of_Pisa property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]