Simple Question (Direct)
Simple Question
Q1230086
P1313
Q12737077
USER
What is the occupation held by Bellvei ?
(Q1230086,P1313,c(Q12737077))
action filter_type
action find
entity Q1230086
relation P1313
type Q12737077
['Q1230086', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1230086 property:P1313 ?j . ?j rdf:type ontology:Q12737077 }
Bellvei
action filter_type
action find
entity Bellvei
relation office held by head of government
type occupation
['Bellvei', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bellvei property:office_held_by_head_of_government ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q26690598
SYSTEM
mayor of Bellvey
Q26690598
(Q1230086,P1313,c(Q12737077))
action filter_type
action find
entity Q1230086
relation P1313
type Q12737077
The occupation held by Bellvei is the [ANSWER]
['Q1230086', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1230086 property:P1313 ?j . ?j rdf:type ontology:Q12737077 }
mayor of Bellvey
The occupation held by Bellvei is the mayor of Bellvey
mayor of Bellvey
action filter_type
action find
entity Bellvei
relation office held by head of government
type occupation
['Bellvei', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Bellvei property:office_held_by_head_of_government ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1230086
P6
Q502895
USER
Which person is that political territory the head of goverment of ?
(Q26690598,P6,c(Q502895))
action filter_type
action find
entity Q1230086
relation P6
type Q502895
['Q26690598', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1230086 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Bellvei
action filter_type
action find
entity Bellvei
relation head of government
type common name
['mayor of Bellvey', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Bellvei property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
common name
Q14121479
SYSTEM
Felix Sans Mañe
Q14121479
(Q26690598,P6,c(Q502895))
action filter_type
action find
entity Q1230086
relation P6
type Q502895
[ANSWER] is that political territory the head of goverment of
['Q26690598', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1230086 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Felix Sans Mañe
Felix Sans Mañe is that political territory the head of goverment of
Felix Sans Mañe
action filter_type
action find
entity Bellvei
relation head of government
type common name
['mayor of Bellvey', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Bellvei property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P6
Q1048835
USER
How many political territories have a government lead by that person ?
(c(Q1048835),P6,Q14121479)
action count
action filter_type
action find_reverse
entity Q14121479
relation P6
type Q1048835
[{'concept': 'Q1048835'}, 'P6', 'Q14121479']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P6 resource:Q14121479 . ?d rdf:type ontology:Q1048835 }
action count
action filter_type
action find_reverse
entity Felix Sans Mañe
relation head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of government', 'Felix Sans Mañe']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:head_of_government resource:Felix_Sans_Mañe . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q1230086
(c(Q1048835),P6,Q14121479)
action count
action filter_type
action find_reverse
entity Q14121479
relation P6
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P6', 'Q14121479']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P6 resource:Q14121479 . ?d rdf:type ontology:Q1048835 }
Bellvei
1
action count
action filter_type
action find_reverse
entity Felix Sans Mañe
relation head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'head of government', 'Felix Sans Mañe']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:head_of_government resource:Felix_Sans_Mañe . ?d rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14121479
P27
Q15617994
USER
Which administrative territory is the native country of Felix Sans Mañe ?
(Q14121479,P27,c(Q15617994))
action filter_type
action find
entity Q14121479
relation P27
type Q15617994
['Q14121479', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q14121479 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Felix Sans Mañe
action filter_type
action find
entity Felix Sans Mañe
relation country of citizenship
type designation for an administrative territorial entity
['Felix Sans Mañe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Felix_Sans_Mañe property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q14121479,P27,c(Q15617994))
action filter_type
action find
entity Q14121479
relation P27
type Q15617994
[ANSWER] is the native country of Felix Sans Mañe
['Q14121479', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q14121479 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Spain
Spain is the native country of Felix Sans Mañe
Spain
action filter_type
action find
entity Felix Sans Mañe
relation country of citizenship
type designation for an administrative territorial entity
['Felix Sans Mañe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Felix_Sans_Mañe property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q6782145 Q14121479
P27
Q15617994
USER
Or María Virginia Báez?
OR((Q14121479,P27,c(Q15617994)), (Q6782145,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q14121479
relation P27
action find
entity Q6782145
relation P27
type Q15617994
{'OR': [['Q14121479', 'P27', {'concept': 'Q15617994'}], ['Q6782145', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q14121479 property:P27 ?t } UNION { resource:Q6782145 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
María Virginia Báez Felix Sans Mañe
action filter_type
action union
action find
entity Felix Sans Mañe
relation country of citizenship
action find
entity María Virginia Báez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Felix Sans Mañe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['María Virginia Báez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Felix_Sans_Mañe property:country_of_citizenship ?t } UNION { resource:María_Virginia_Báez property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q733
SYSTEM
Spain, Paraguay
Q29 Q733
OR((Q14121479,P27,c(Q15617994)), (Q6782145,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q14121479
relation P27
action find
entity Q6782145
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q14121479', 'P27', {'concept': 'Q15617994'}], ['Q6782145', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q14121479 property:P27 ?t } UNION { resource:Q6782145 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Spain Paraguay
Spain Paraguay
action filter_type
action union
action find
entity Felix Sans Mañe
relation country of citizenship
action find
entity María Virginia Báez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Felix Sans Mañe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['María Virginia Báez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Felix_Sans_Mañe property:country_of_citizenship ?t } UNION { resource:María_Virginia_Báez property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q9001308
P27
Q502895
USER
Are Guillermo Cabanellas a citizen of those administrative territories ?
(Q9001308,P27,Q29) (Q9001308,P27,Q733)
action is_in
entity prev_answer
action find
entity Q9001308
relation P27
['Q9001308', 'P27', 'Q29'] ['Q9001308', 'P27', 'Q733']
ASK WHERE { VALUES ( ?h ) { ( resource:Q29 ) ( resource:Q733 ) } . resource:Q9001308 property:P27 ?h }
Guillermo Cabanellas
action is_in
entity prev_answer
action find
entity Guillermo Cabanellas
relation country of citizenship
['Guillermo Cabanellas', 'country of citizenship', 'Spain'] ['Guillermo Cabanellas', 'country of citizenship', 'Paraguay']
ASK WHERE { VALUES ( ?h ) { ( resource:Spain ) ( resource:Paraguay ) } . resource:Guillermo_Cabanellas property:country_of_citizenship ?h }
[]
common name
SYSTEM
YES
(Q9001308,P27,Q29) (Q9001308,P27,Q733)
action is_in
entity prev_answer
action find
entity Q9001308
relation P27
[ANSWER]
['Q9001308', 'P27', 'Q29'] ['Q9001308', 'P27', 'Q733']
ASK WHERE { VALUES ( ?h ) { ( resource:Q29 ) ( resource:Q733 ) } . resource:Q9001308 property:P27 ?h }
Yes
action is_in
entity prev_answer
action find
entity Guillermo Cabanellas
relation country of citizenship
['Guillermo Cabanellas', 'country of citizenship', 'Spain'] ['Guillermo Cabanellas', 'country of citizenship', 'Paraguay']
ASK WHERE { VALUES ( ?h ) { ( resource:Spain ) ( resource:Paraguay ) } . resource:Guillermo_Cabanellas property:country_of_citizenship ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q486972 Q56061 Q15617994
USER
How many administrative territories consists of exactly 3 human settlements or administrative territories as their capital ?
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action count
action equal
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 3
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?l WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } GROUP BY ?l } . FILTER ( ?v = 3 ) }
action count
action equal
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?l WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?l } . FILTER ( ?v = 3 ) }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q160307
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action count
action equal
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 3
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?l WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } GROUP BY ?l } . FILTER ( ?v = 3 ) }
Fatimid caliphate
1
action count
action equal
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) ?l WHERE { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?l } . FILTER ( ?v = 3 ) }
[]