Simple Question (Direct)
Simple Question
Q3812657
P641
Q349
USER
Which sport did Kamal Ibrahim participate in ?
(Q3812657,P641,c(Q349))
action filter_type
action find
entity Q3812657
relation P641
type Q349
['Q3812657', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q3812657 property:P641 ?p . ?p rdf:type ontology:Q349 }
Kamal Ibrahim
action filter_type
action find
entity Kamal Ibrahim
relation sport
type sport
['Kamal Ibrahim', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Kamal_Ibrahim property:sport ?p . ?p rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3812657,P641,c(Q349))
action filter_type
action find
entity Q3812657
relation P641
type Q349
Kamal Ibrahim participated in [ANSWER]
['Q3812657', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q3812657 property:P641 ?p . ?p rdf:type ontology:Q349 }
association football
Kamal Ibrahim participated in association football
association football
action filter_type
action find
entity Kamal Ibrahim
relation sport
type sport
['Kamal Ibrahim', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Kamal_Ibrahim property:sport ?p . ?p rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3812657
P19
Q515
USER
Where was that person born ?
(Q2736,P19,c(Q515))
action filter_type
action find
entity Q3812657
relation P19
type Q515
['Q2736', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q3812657 property:P19 ?i . ?i rdf:type ontology:Q515 }
Kamal Ibrahim
action filter_type
action find
entity Kamal Ibrahim
relation place of birth
type city
['association football', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Kamal_Ibrahim property:place_of_birth ?i . ?i rdf:type ontology:city }
[]
city
Q3624
SYSTEM
Addis Ababa
Q3624
(Q2736,P19,c(Q515))
action filter_type
action find
entity Q3812657
relation P19
type Q515
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q3812657 property:P19 ?i . ?i rdf:type ontology:Q515 }
Addis Ababa
That person was born in Addis Ababa
Addis Ababa
action filter_type
action find
entity Kamal Ibrahim
relation place of birth
type city
['association football', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Kamal_Ibrahim property:place_of_birth ?i . ?i rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3624
P1376
Q15617994
USER
What has that city as its capital ?
(Q3624,P1376,c(Q15617994))
action filter_type
action find
entity Q3624
relation P1376
type Q15617994
['Q3624', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3624 property:P1376 ?w . ?w rdf:type ontology:Q15617994 }
Addis Ababa
action filter_type
action find
entity Addis Ababa
relation capital of
type designation for an administrative territorial entity
['Addis Ababa', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Addis_Ababa property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q115
SYSTEM
Ethiopia
Q115
(Q3624,P1376,c(Q15617994))
action filter_type
action find
entity Q3624
relation P1376
type Q15617994
[ANSWER] has that city as its capital
['Q3624', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3624 property:P1376 ?w . ?w rdf:type ontology:Q15617994 }
Ethiopia
Ethiopia has that city as its capital
Ethiopia
action filter_type
action find
entity Addis Ababa
relation capital of
type designation for an administrative territorial entity
['Addis Ababa', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Addis_Ababa property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q271669 Q355304 Q15617994
USER
How many administrative territories have exactly 2 landforms or watercourses as their toponym ?
(c(Q15617994),P138,c(Q271669)|c(Q355304))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q355304
value 2
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:Q271669 ) ( ontology:Q355304 ) } . ?l rdf:type ?a } GROUP BY ?c } . FILTER ( ?g = 2 ) }
action count
action equal
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type watercourse
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:landform ) ( ontology:watercourse ) } . ?l rdf:type ?a } GROUP BY ?c } . FILTER ( ?g = 2 ) }
[]
landform watercourse designation for an administrative territorial entity
SYSTEM
18
Q12779 Q12556 Q12753 Q3377 Q979470 Q541095 Q1338277 Q282355 Q12584 Q12578 Q754 Q12736 Q12765 Q3509886 Q12549 Q12626 Q2236821 Q12564
(c(Q15617994),P138,c(Q271669)|c(Q355304))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q355304
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:Q271669 ) ( ontology:Q355304 ) } . ?l rdf:type ?a } GROUP BY ?c } . FILTER ( ?g = 2 ) }
Tarn-et-Garonne Indre-et-Loire Seine-et-Marne Eure-et-Loir Seine-et-Oise Rhin-et-Moselle Sambre-et-Meuse Nesse-Apfelstädt Maine-et-Loire Lot-et-Garonne Trinidad and Tobago Saône-et-Loire Deux-Sèvres Sègre-Ter Ille-et-Vilaine Meurthe-et-Moselle Rhône-et-Loire Loir-et-Cher
18
action count
action equal
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type watercourse
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:landform ) ( ontology:watercourse ) } . ?l rdf:type ?a } GROUP BY ?c } . FILTER ( ?g = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3812657
P21
Q290
USER
Which sex does Kamal Ibrahim possess ?
(Q3812657,P21,c(Q290))
action filter_type
action find
entity Q3812657
relation P21
type Q290
['Q3812657', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q3812657 property:P21 ?d }
Kamal Ibrahim
action filter_type
action find
entity Kamal Ibrahim
relation gender
type sex
['Kamal Ibrahim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Kamal_Ibrahim property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3812657,P21,c(Q290))
action filter_type
action find
entity Q3812657
relation P21
type Q290
Kamal Ibrahim possesses un [ANSWER]
['Q3812657', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q3812657 property:P21 ?d }
male
Kamal Ibrahim possesses un male
male
action filter_type
action find
entity Kamal Ibrahim
relation gender
type sex
['Kamal Ibrahim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Kamal_Ibrahim property:gender ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q10290527
Q290
USER
And what about Gontran Borys?
(Q10290527,P21,c(Q290))
action filter_type
action find
entity Q10290527
relation P21
type Q290
['Q10290527', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q10290527 property:P21 ?l . ?l rdf:type ontology:Q290 }
Gontran Borys
action filter_type
action find
entity Gontran Borys
relation gender
type sex
['Gontran Borys', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Gontran_Borys property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q10290527,P21,c(Q290))
action filter_type
action find
entity Q10290527
relation P21
type Q290
[ANSWER]
['Q10290527', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q10290527 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Gontran Borys
relation gender
type sex
['Gontran Borys', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Gontran_Borys property:gender ?l . ?l rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q3588353
P21
Q502895
USER
Is Émile Blanchet a that sex ?
(Q3588353,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3588353
relation P21
['Q3588353', 'P21', 'Q6581097']
ASK WHERE { resource:Q3588353 property:P21 resource:Q6581097 }
male Émile Blanchet
action is_in
entity male
action find
entity Émile Blanchet
relation gender
['Émile Blanchet', 'gender', 'male']
ASK WHERE { resource:Émile_Blanchet property:gender resource:male }
[]
common name
SYSTEM
YES
(Q3588353,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3588353
relation P21
[ANSWER]
['Q3588353', 'P21', 'Q6581097']
ASK WHERE { resource:Q3588353 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Émile Blanchet
relation gender
['Émile Blanchet', 'gender', 'male']
ASK WHERE { resource:Émile_Blanchet property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q115 Q2675345 Q569313
P47
Q15617994
USER
Does Ethiopia have an adjacent border with Swyncombe and Gutweiler ?
(Q115,P47,Q2675345) (Q115,P47,Q569313)
action is_in
entity Q115
action intersection
action find_reverse
entity Q2675345
relation P47
action find_reverse
entity Q569313
relation P47
['Q115', 'P47', 'Q2675345'] ['Q115', 'P47', 'Q569313']
ASK WHERE { resource:Q115 property:P47 resource:Q2675345 . resource:Q115 property:P47 resource:Q569313 }
Ethiopia Swyncombe Gutweiler
action is_in
entity Ethiopia
action intersection
action find_reverse
entity Swyncombe
relation shares border with
action find_reverse
entity Gutweiler
relation shares border with
['Ethiopia', 'shares border with', 'Swyncombe'] ['Ethiopia', 'shares border with', 'Gutweiler']
ASK WHERE { resource:Ethiopia property:shares_border_with resource:Swyncombe . resource:Ethiopia property:shares_border_with resource:Gutweiler }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q115,P47,Q2675345) (Q115,P47,Q569313)
action is_in
entity Q115
action intersection
action find_reverse
entity Q2675345
relation P47
action find_reverse
entity Q569313
relation P47
[ANSWER]
['Q115', 'P47', 'Q2675345'] ['Q115', 'P47', 'Q569313']
ASK WHERE { resource:Q115 property:P47 resource:Q2675345 . resource:Q115 property:P47 resource:Q569313 }
No
action is_in
entity Ethiopia
action intersection
action find_reverse
entity Swyncombe
relation shares border with
action find_reverse
entity Gutweiler
relation shares border with
['Ethiopia', 'shares border with', 'Swyncombe'] ['Ethiopia', 'shares border with', 'Gutweiler']
ASK WHERE { resource:Ethiopia property:shares_border_with resource:Swyncombe . resource:Ethiopia property:shares_border_with resource:Gutweiler }
[]