Simple Question (Direct)
Simple Question
Q7613873
P21
Q290
USER
Which sex does Steve Scoffham have ?
(Q7613873,P21,c(Q290))
action filter_type
action find
entity Q7613873
relation P21
type Q290
['Q7613873', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q7613873 property:P21 ?n . ?n rdf:type ontology:Q290 }
Steve Scoffham
action filter_type
action find
entity Steve Scoffham
relation gender
type sex
['Steve Scoffham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Steve_Scoffham property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7613873,P21,c(Q290))
action filter_type
action find
entity Q7613873
relation P21
type Q290
Steve Scoffham has a [ANSWER]
['Q7613873', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q7613873 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
Steve Scoffham has a male
male
action filter_type
action find
entity Steve Scoffham
relation gender
type sex
['Steve Scoffham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Steve_Scoffham property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7613873
P27
Q15617994
USER
Which administrative territory is the native country of Steve Scoffham ?
(Q7613873,P27,c(Q15617994))
action filter_type
action find
entity Q7613873
relation P27
type Q15617994
['Q7613873', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q7613873 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Steve Scoffham
action filter_type
action find
entity Steve Scoffham
relation country of citizenship
type designation for an administrative territorial entity
['Steve Scoffham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Steve_Scoffham property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7613873,P27,c(Q15617994))
action filter_type
action find
entity Q7613873
relation P27
type Q15617994
The [ANSWER] is the native country of Steve Scoffham
['Q7613873', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q7613873 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is the native country of Steve Scoffham
United Kingdom
action filter_type
action find
entity Steve Scoffham
relation country of citizenship
type designation for an administrative territorial entity
['Steve Scoffham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Steve_Scoffham property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7613873
P19
Q15617994
USER
Which administrative territory is the place of birth of that person ?
(Q145,P19,c(Q15617994))
action filter_type
action find
entity Q7613873
relation P19
type Q15617994
['Q145', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7613873 property:P19 ?c . ?c rdf:type ontology:Q15617994 }
Steve Scoffham
action filter_type
action find
entity Steve Scoffham
relation place of birth
type designation for an administrative territorial entity
['United Kingdom', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Steve_Scoffham property:place_of_birth ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q2742
SYSTEM
Münster
Q2742
(Q145,P19,c(Q15617994))
action filter_type
action find
entity Q7613873
relation P19
type Q15617994
[ANSWER] is the place of birth of that person
['Q145', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7613873 property:P19 ?c . ?c rdf:type ontology:Q15617994 }
Münster
Münster is the place of birth of that person
Münster
action filter_type
action find
entity Steve Scoffham
relation place of birth
type designation for an administrative territorial entity
['United Kingdom', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Steve_Scoffham property:place_of_birth ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7613873
P106
Q12737077
USER
What is the job of that person ?
(Q2742,P106,c(Q12737077))
action filter_type
action find
entity Q7613873
relation P106
type Q12737077
['Q2742', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q7613873 property:P106 ?q }
Steve Scoffham
action filter_type
action find
entity Steve Scoffham
relation occupation
type occupation
['Münster', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Steve_Scoffham property:occupation ?q }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2742,P106,c(Q12737077))
action filter_type
action find
entity Q7613873
relation P106
type Q12737077
The job of that person is an [ANSWER]
['Q2742', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q7613873 property:P106 ?q }
association football player
The job of that person is an association football player
association football player
action filter_type
action find
entity Steve Scoffham
relation occupation
type occupation
['Münster', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Steve_Scoffham property:occupation ?q }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2300468 Q145
P530 P159
Q15617994
USER
Which administrative territories have diplomatic relationships with United Kingdom or are the head offices of VM Motori ?
OR((Q145,P530,c(Q15617994)), (Q2300468,P159,c(Q15617994)))
action filter_type
action union
action find
entity Q145
relation P530
action find
entity Q2300468
relation P159
type Q15617994
{'OR': [['Q145', 'P530', {'concept': 'Q15617994'}], ['Q2300468', 'P159', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q145 property:P530 ?x } UNION { resource:Q2300468 property:P159 ?x } } . ?x rdf:type ontology:Q15617994 }
VM Motori United Kingdom
action filter_type
action union
action find
entity United Kingdom
relation diplomatic relation
action find
entity VM Motori
relation headquarters location
type designation for an administrative territorial entity
{'OR': [['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['VM Motori', 'headquarters location', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:United_Kingdom property:diplomatic_relation ?x } UNION { resource:VM_Motori property:headquarters_location ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q805 Q801 Q155 Q95094 Q37 Q403 Q38
SYSTEM
France, Yemen, Israel, Brazil, Cento, Lithuania, Serbia, Italy
Q142 Q805 Q801 Q155 Q95094 Q37 Q403 Q38
OR((Q145,P530,c(Q15617994)), (Q2300468,P159,c(Q15617994)))
action filter_type
action union
action find
entity Q145
relation P530
action find
entity Q2300468
relation P159
type Q15617994
[ANSWERS] have diplomatic relationships with United Kingdom or are the head offices of VM Motori
{'OR': [['Q145', 'P530', {'concept': 'Q15617994'}], ['Q2300468', 'P159', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q145 property:P530 ?x } UNION { resource:Q2300468 property:P159 ?x } } . ?x rdf:type ontology:Q15617994 }
France Yemen Israel Brazil Cento Lithuania Serbia Italy
France, Yemen, Israel, Brazil, Cento, Lithuania, Serbia and Italy have diplomatic relationships with United Kingdom or are the head offices of VM Motori
France Yemen Israel Brazil Cento Lithuania Serbia Italy
action filter_type
action union
action find
entity United Kingdom
relation diplomatic relation
action find
entity VM Motori
relation headquarters location
type designation for an administrative territorial entity
{'OR': [['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['VM Motori', 'headquarters location', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:United_Kingdom property:diplomatic_relation ?x } UNION { resource:VM_Motori property:headquarters_location ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P206
Q15324 Q355304
USER
How many bodies of water or watercourses are located in the neighbourhood of that administrative territory ?
(Q801,P206,c(Q15324)) (Q801,P206,c(Q355304)) (Q142,P206,c(Q15324)) (Q142,P206,c(Q355304)) (Q805,P206,c(Q15324)) (Q805,P206,c(Q355304)) (Q801,P206,c(Q15324)) (Q801,P206,c(Q355304)) (Q155,P206,c(Q15324)) (Q155,P206,c(Q355304)) (Q95094,P206,c(Q15324)) (Q95094,P206,c(Q355304)) (Q37,P206,c(Q15324)) (Q37,P206,c(Q355304)) (Q403,P206,c(Q15324)) (Q403,P206,c(Q355304)) (Q38,P206,c(Q15324)) (Q38,P206,c(Q355304))
['Q801', 'P206', {'concept': 'Q15324'}] ['Q801', 'P206', {'concept': 'Q355304'}] ['Q142', 'P206', {'concept': 'Q15324'}] ['Q142', 'P206', {'concept': 'Q355304'}] ['Q805', 'P206', {'concept': 'Q15324'}] ['Q805', 'P206', {'concept': 'Q355304'}] ['Q801', 'P206', {'concept': 'Q15324'}] ['Q801', 'P206', {'concept': 'Q355304'}] ['Q155', 'P206', {'concept': 'Q15324'}] ['Q155', 'P206', {'concept': 'Q355304'}] ['Q95094', 'P206', {'concept': 'Q15324'}] ['Q95094', 'P206', {'concept': 'Q355304'}] ['Q37', 'P206', {'concept': 'Q15324'}] ['Q37', 'P206', {'concept': 'Q355304'}] ['Q403', 'P206', {'concept': 'Q15324'}] ['Q403', 'P206', {'concept': 'Q355304'}] ['Q38', 'P206', {'concept': 'Q15324'}] ['Q38', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q234180 property:P206 ?z } UNION { resource:Q234180 property:P206 ?y } UNION { resource:Q16275867 property:P206 ?z } UNION { resource:Q16275867 property:P206 ?y } UNION { resource:Q805 property:P206 ?z } UNION { resource:Q805 property:P206 ?y } UNION { resource:Q234180 property:P206 ?z } UNION { resource:Q234180 property:P206 ?y } UNION { resource:Q21475816 property:P206 ?z } UNION { resource:Q21475816 property:P206 ?y } UNION { resource:Q126324 property:P206 ?z } UNION { resource:Q126324 property:P206 ?y } UNION { resource:Q6648231 property:P206 ?z } UNION { resource:Q6648231 property:P206 ?y } UNION { resource:Q403 property:P206 ?z } UNION { resource:Q403 property:P206 ?y } UNION { resource:Q977238 property:P206 ?z } UNION { resource:Q977238 property:P206 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q355304 }
['Israel', 'located next to body of water', {'concept': 'body of water'}] ['Israel', 'located next to body of water', {'concept': 'watercourse'}] ['France', 'located next to body of water', {'concept': 'body of water'}] ['France', 'located next to body of water', {'concept': 'watercourse'}] ['Yemen', 'located next to body of water', {'concept': 'body of water'}] ['Yemen', 'located next to body of water', {'concept': 'watercourse'}] ['Israel', 'located next to body of water', {'concept': 'body of water'}] ['Israel', 'located next to body of water', {'concept': 'watercourse'}] ['Brazil', 'located next to body of water', {'concept': 'body of water'}] ['Brazil', 'located next to body of water', {'concept': 'watercourse'}] ['Cento', 'located next to body of water', {'concept': 'body of water'}] ['Cento', 'located next to body of water', {'concept': 'watercourse'}] ['Lithuania', 'located next to body of water', {'concept': 'body of water'}] ['Lithuania', 'located next to body of water', {'concept': 'watercourse'}] ['Serbia', 'located next to body of water', {'concept': 'body of water'}] ['Serbia', 'located next to body of water', {'concept': 'watercourse'}] ['Italy', 'located next to body of water', {'concept': 'body of water'}] ['Italy', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Israel property:located_next_to_body_of_water ?z } UNION { resource:Israel property:located_next_to_body_of_water ?y } UNION { resource:France property:located_next_to_body_of_water ?z } UNION { resource:France property:located_next_to_body_of_water ?y } UNION { resource:Yemen property:located_next_to_body_of_water ?z } UNION { resource:Yemen property:located_next_to_body_of_water ?y } UNION { resource:Israel property:located_next_to_body_of_water ?z } UNION { resource:Israel property:located_next_to_body_of_water ?y } UNION { resource:Brazil property:located_next_to_body_of_water ?z } UNION { resource:Brazil property:located_next_to_body_of_water ?y } UNION { resource:Cento property:located_next_to_body_of_water ?z } UNION { resource:Cento property:located_next_to_body_of_water ?y } UNION { resource:Lithuania property:located_next_to_body_of_water ?z } UNION { resource:Lithuania property:located_next_to_body_of_water ?y } UNION { resource:Serbia property:located_next_to_body_of_water ?z } UNION { resource:Serbia property:located_next_to_body_of_water ?y } UNION { resource:Italy property:located_next_to_body_of_water ?z } UNION { resource:Italy property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:watercourse }
[]
body of water watercourse
Quantitative|Count|Mult. entity type|Clarification
Q95094
SYSTEM
Did you mean Cento ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q234180 property:P206 ?z } UNION { resource:Q234180 property:P206 ?y } UNION { resource:Q16275867 property:P206 ?z } UNION { resource:Q16275867 property:P206 ?y } UNION { resource:Q805 property:P206 ?z } UNION { resource:Q805 property:P206 ?y } UNION { resource:Q234180 property:P206 ?z } UNION { resource:Q234180 property:P206 ?y } UNION { resource:Q21475816 property:P206 ?z } UNION { resource:Q21475816 property:P206 ?y } UNION { resource:Q126324 property:P206 ?z } UNION { resource:Q126324 property:P206 ?y } UNION { resource:Q6648231 property:P206 ?z } UNION { resource:Q6648231 property:P206 ?y } UNION { resource:Q403 property:P206 ?z } UNION { resource:Q403 property:P206 ?y } UNION { resource:Q977238 property:P206 ?z } UNION { resource:Q977238 property:P206 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q355304 }
Did you mean Cento ?
Cento
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Israel property:located_next_to_body_of_water ?z } UNION { resource:Israel property:located_next_to_body_of_water ?y } UNION { resource:France property:located_next_to_body_of_water ?z } UNION { resource:France property:located_next_to_body_of_water ?y } UNION { resource:Yemen property:located_next_to_body_of_water ?z } UNION { resource:Yemen property:located_next_to_body_of_water ?y } UNION { resource:Israel property:located_next_to_body_of_water ?z } UNION { resource:Israel property:located_next_to_body_of_water ?y } UNION { resource:Brazil property:located_next_to_body_of_water ?z } UNION { resource:Brazil property:located_next_to_body_of_water ?y } UNION { resource:Cento property:located_next_to_body_of_water ?z } UNION { resource:Cento property:located_next_to_body_of_water ?y } UNION { resource:Lithuania property:located_next_to_body_of_water ?z } UNION { resource:Lithuania property:located_next_to_body_of_water ?y } UNION { resource:Serbia property:located_next_to_body_of_water ?z } UNION { resource:Serbia property:located_next_to_body_of_water ?y } UNION { resource:Italy property:located_next_to_body_of_water ?z } UNION { resource:Italy property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Israel. Could you tell me the answer for that?
(Q801,P206,c(Q15324)) (Q801,P206,c(Q355304)) (Q142,P206,c(Q15324)) (Q142,P206,c(Q355304)) (Q805,P206,c(Q15324)) (Q805,P206,c(Q355304)) (Q801,P206,c(Q15324)) (Q801,P206,c(Q355304)) (Q155,P206,c(Q15324)) (Q155,P206,c(Q355304)) (Q95094,P206,c(Q15324)) (Q95094,P206,c(Q355304)) (Q37,P206,c(Q15324)) (Q37,P206,c(Q355304)) (Q403,P206,c(Q15324)) (Q403,P206,c(Q355304)) (Q38,P206,c(Q15324)) (Q38,P206,c(Q355304))
Q801
['Q801', 'P206', {'concept': 'Q15324'}] ['Q801', 'P206', {'concept': 'Q355304'}] ['Q142', 'P206', {'concept': 'Q15324'}] ['Q142', 'P206', {'concept': 'Q355304'}] ['Q805', 'P206', {'concept': 'Q15324'}] ['Q805', 'P206', {'concept': 'Q355304'}] ['Q801', 'P206', {'concept': 'Q15324'}] ['Q801', 'P206', {'concept': 'Q355304'}] ['Q155', 'P206', {'concept': 'Q15324'}] ['Q155', 'P206', {'concept': 'Q355304'}] ['Q95094', 'P206', {'concept': 'Q15324'}] ['Q95094', 'P206', {'concept': 'Q355304'}] ['Q37', 'P206', {'concept': 'Q15324'}] ['Q37', 'P206', {'concept': 'Q355304'}] ['Q403', 'P206', {'concept': 'Q15324'}] ['Q403', 'P206', {'concept': 'Q355304'}] ['Q38', 'P206', {'concept': 'Q15324'}] ['Q38', 'P206', {'concept': 'Q355304'}]
['Israel', 'located next to body of water', {'concept': 'body of water'}] ['Israel', 'located next to body of water', {'concept': 'watercourse'}] ['France', 'located next to body of water', {'concept': 'body of water'}] ['France', 'located next to body of water', {'concept': 'watercourse'}] ['Yemen', 'located next to body of water', {'concept': 'body of water'}] ['Yemen', 'located next to body of water', {'concept': 'watercourse'}] ['Israel', 'located next to body of water', {'concept': 'body of water'}] ['Israel', 'located next to body of water', {'concept': 'watercourse'}] ['Brazil', 'located next to body of water', {'concept': 'body of water'}] ['Brazil', 'located next to body of water', {'concept': 'watercourse'}] ['Cento', 'located next to body of water', {'concept': 'body of water'}] ['Cento', 'located next to body of water', {'concept': 'watercourse'}] ['Lithuania', 'located next to body of water', {'concept': 'body of water'}] ['Lithuania', 'located next to body of water', {'concept': 'watercourse'}] ['Serbia', 'located next to body of water', {'concept': 'body of water'}] ['Serbia', 'located next to body of water', {'concept': 'watercourse'}] ['Italy', 'located next to body of water', {'concept': 'body of water'}] ['Italy', 'located next to body of water', {'concept': 'watercourse'}]
[]
SYSTEM
4
Q748696 Q23883 Q81611 Q40059
(Q801,P206,c(Q15324)) (Q801,P206,c(Q355304)) (Q142,P206,c(Q15324)) (Q142,P206,c(Q355304)) (Q805,P206,c(Q15324)) (Q805,P206,c(Q355304)) (Q801,P206,c(Q15324)) (Q801,P206,c(Q355304)) (Q155,P206,c(Q15324)) (Q155,P206,c(Q355304)) (Q95094,P206,c(Q15324)) (Q95094,P206,c(Q355304)) (Q37,P206,c(Q15324)) (Q37,P206,c(Q355304)) (Q403,P206,c(Q15324)) (Q403,P206,c(Q355304)) (Q38,P206,c(Q15324)) (Q38,P206,c(Q355304))
[ANSWER]
['Q801', 'P206', {'concept': 'Q15324'}] ['Q801', 'P206', {'concept': 'Q355304'}] ['Q142', 'P206', {'concept': 'Q15324'}] ['Q142', 'P206', {'concept': 'Q355304'}] ['Q805', 'P206', {'concept': 'Q15324'}] ['Q805', 'P206', {'concept': 'Q355304'}] ['Q801', 'P206', {'concept': 'Q15324'}] ['Q801', 'P206', {'concept': 'Q355304'}] ['Q155', 'P206', {'concept': 'Q15324'}] ['Q155', 'P206', {'concept': 'Q355304'}] ['Q95094', 'P206', {'concept': 'Q15324'}] ['Q95094', 'P206', {'concept': 'Q355304'}] ['Q37', 'P206', {'concept': 'Q15324'}] ['Q37', 'P206', {'concept': 'Q355304'}] ['Q403', 'P206', {'concept': 'Q15324'}] ['Q403', 'P206', {'concept': 'Q355304'}] ['Q38', 'P206', {'concept': 'Q15324'}] ['Q38', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q234180 property:P206 ?z } UNION { resource:Q234180 property:P206 ?y } UNION { resource:Q16275867 property:P206 ?z } UNION { resource:Q16275867 property:P206 ?y } UNION { resource:Q805 property:P206 ?z } UNION { resource:Q805 property:P206 ?y } UNION { resource:Q234180 property:P206 ?z } UNION { resource:Q234180 property:P206 ?y } UNION { resource:Q21475816 property:P206 ?z } UNION { resource:Q21475816 property:P206 ?y } UNION { resource:Q126324 property:P206 ?z } UNION { resource:Q126324 property:P206 ?y } UNION { resource:Q6648231 property:P206 ?z } UNION { resource:Q6648231 property:P206 ?y } UNION { resource:Q403 property:P206 ?z } UNION { resource:Q403 property:P206 ?y } UNION { resource:Q977238 property:P206 ?z } UNION { resource:Q977238 property:P206 ?y } } . ?z rdf:type ontology:Q15324 . ?y rdf:type ontology:Q355304 }
Levantine Sea Dead Sea Gulf of Aqaba Jordan River
4
['Israel', 'located next to body of water', {'concept': 'body of water'}] ['Israel', 'located next to body of water', {'concept': 'watercourse'}] ['France', 'located next to body of water', {'concept': 'body of water'}] ['France', 'located next to body of water', {'concept': 'watercourse'}] ['Yemen', 'located next to body of water', {'concept': 'body of water'}] ['Yemen', 'located next to body of water', {'concept': 'watercourse'}] ['Israel', 'located next to body of water', {'concept': 'body of water'}] ['Israel', 'located next to body of water', {'concept': 'watercourse'}] ['Brazil', 'located next to body of water', {'concept': 'body of water'}] ['Brazil', 'located next to body of water', {'concept': 'watercourse'}] ['Cento', 'located next to body of water', {'concept': 'body of water'}] ['Cento', 'located next to body of water', {'concept': 'watercourse'}] ['Lithuania', 'located next to body of water', {'concept': 'body of water'}] ['Lithuania', 'located next to body of water', {'concept': 'watercourse'}] ['Serbia', 'located next to body of water', {'concept': 'body of water'}] ['Serbia', 'located next to body of water', {'concept': 'watercourse'}] ['Italy', 'located next to body of water', {'concept': 'body of water'}] ['Italy', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Israel property:located_next_to_body_of_water ?z } UNION { resource:Israel property:located_next_to_body_of_water ?y } UNION { resource:France property:located_next_to_body_of_water ?z } UNION { resource:France property:located_next_to_body_of_water ?y } UNION { resource:Yemen property:located_next_to_body_of_water ?z } UNION { resource:Yemen property:located_next_to_body_of_water ?y } UNION { resource:Israel property:located_next_to_body_of_water ?z } UNION { resource:Israel property:located_next_to_body_of_water ?y } UNION { resource:Brazil property:located_next_to_body_of_water ?z } UNION { resource:Brazil property:located_next_to_body_of_water ?y } UNION { resource:Cento property:located_next_to_body_of_water ?z } UNION { resource:Cento property:located_next_to_body_of_water ?y } UNION { resource:Lithuania property:located_next_to_body_of_water ?z } UNION { resource:Lithuania property:located_next_to_body_of_water ?y } UNION { resource:Serbia property:located_next_to_body_of_water ?z } UNION { resource:Serbia property:located_next_to_body_of_water ?y } UNION { resource:Italy property:located_next_to_body_of_water ?z } UNION { resource:Italy property:located_next_to_body_of_water ?y } } . ?z rdf:type ontology:body_of_water . ?y rdf:type ontology:watercourse }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with atmost 91 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 91
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?y ) WHERE { ?a property:P530 ?h . ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?y <= 91 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 91
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?y ) WHERE { ?a property:diplomatic_relation ?h . ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?y <= 91 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 91
[ANSWERS] have diplomatic associations with atmost 91 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?y ) WHERE { ?a property:P530 ?h . ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?y <= 91 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic associations with atmost 91 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 91
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?y ) WHERE { ?a property:diplomatic_relation ?h . ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?y <= 91 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4377910
P530
Q1048835
USER
Do Pryvovchanske have ambassadorial relations with those ones ?
(Q4377910,P530,Q35) (Q4377910,P530,Q16) (Q4377910,P530,Q40)
action is_in
entity prev_answer
action find
entity Q4377910
relation P530
['Q4377910', 'P530', 'Q35'] ['Q4377910', 'P530', 'Q16'] ['Q4377910', 'P530', 'Q40']
ASK WHERE { resource:Q4377910 property:P530 ?j . VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Pryvovchanske
action is_in
entity prev_answer
action find
entity Pryvovchanske
relation diplomatic relation
['Pryvovchanske', 'diplomatic relation', 'Denmark'] ['Pryvovchanske', 'diplomatic relation', 'Canada'] ['Pryvovchanske', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Pryvovchanske property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
NO
(Q4377910,P530,Q35) (Q4377910,P530,Q16) (Q4377910,P530,Q40)
action is_in
entity prev_answer
action find
entity Q4377910
relation P530
[ANSWER]
['Q4377910', 'P530', 'Q35'] ['Q4377910', 'P530', 'Q16'] ['Q4377910', 'P530', 'Q40']
ASK WHERE { resource:Q4377910 property:P530 ?j . VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Pryvovchanske
relation diplomatic relation
['Pryvovchanske', 'diplomatic relation', 'Denmark'] ['Pryvovchanske', 'diplomatic relation', 'Canada'] ['Pryvovchanske', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Pryvovchanske property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2742 Q1224813 Q6548
P190
Q20667921
USER
Is Münster partner town of Reuil and Orléans ?
(Q2742,P190,Q1224813) (Q2742,P190,Q6548)
action is_in
entity Q2742
action intersection
action find_reverse
entity Q1224813
relation P190
action find_reverse
entity Q6548
relation P190
['Q2742', 'P190', 'Q1224813'] ['Q2742', 'P190', 'Q6548']
ASK WHERE { resource:Q2742 property:P190 resource:Q1224813 . resource:Q2742 property:P190 resource:Q6548 }
Münster Reuil Orléans
action is_in
entity Münster
action intersection
action find_reverse
entity Reuil
relation sister city
action find_reverse
entity Orléans
relation sister city
['Münster', 'sister city', 'Reuil'] ['Münster', 'sister city', 'Orléans']
ASK WHERE { resource:Münster property:sister_city resource:Reuil . resource:Münster property:sister_city resource:Orléans }
[]
type of french administrative division
SYSTEM
NO and YES respectively
(Q2742,P190,Q1224813) (Q2742,P190,Q6548)
action is_in
entity Q2742
action intersection
action find_reverse
entity Q1224813
relation P190
action find_reverse
entity Q6548
relation P190
[ANSWER]
['Q2742', 'P190', 'Q1224813'] ['Q2742', 'P190', 'Q6548']
ASK WHERE { resource:Q2742 property:P190 resource:Q1224813 . resource:Q2742 property:P190 resource:Q6548 }
NO and YES respectively
action is_in
entity Münster
action intersection
action find_reverse
entity Reuil
relation sister city
action find_reverse
entity Orléans
relation sister city
['Münster', 'sister city', 'Reuil'] ['Münster', 'sister city', 'Orléans']
ASK WHERE { resource:Münster property:sister_city resource:Reuil . resource:Münster property:sister_city resource:Orléans }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with atmost 113 political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 113
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P530 ?f . ?f rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 } UNION { ?f rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?h property:P530 ?f } } GROUP BY ?f } . FILTER ( ?j <= 113 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 113
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity } UNION { ?f rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?f } } GROUP BY ?f } . FILTER ( ?j <= 113 ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 113
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P530 ?f . ?f rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 } UNION { ?f rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?h property:P530 ?f } } GROUP BY ?f } . FILTER ( ?j <= 113 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 113
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity } UNION { ?f rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?f } } GROUP BY ?f } . FILTER ( ?j <= 113 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q29 Q801
P27
Q502895
USER
Which people are a citizen of Israel and Spain ?
AND((c(Q502895),P27,Q801), (c(Q502895),P27,Q29))
action filter_type
action intersection
action find_reverse
entity Q801
relation P27
action find_reverse
entity Q29
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q801'], [{'concept': 'Q502895'}, 'P27', 'Q29']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P27 resource:Q801 . ?x property:P27 resource:Q29 }
Spain Israel
action filter_type
action intersection
action find_reverse
entity Israel
relation country of citizenship
action find_reverse
entity Spain
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Israel'], [{'concept': 'common name'}, 'country of citizenship', 'Spain']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:country_of_citizenship resource:Israel . ?x property:country_of_citizenship resource:Spain }
[]
common name
Q152768 Q2896341 Q706542 Q3914714 Q24999 Q1361996
SYSTEM
Daniel Barenboim, Jan Martín, Marc Rich, Henrique Cymerman, Cordelia Edvardson, Vladimir Gusinsky
Q152768 Q2896341 Q706542 Q3914714 Q24999 Q1361996
AND((c(Q502895),P27,Q801), (c(Q502895),P27,Q29))
action filter_type
action intersection
action find_reverse
entity Q801
relation P27
action find_reverse
entity Q29
relation P27
type Q502895
[ANSWERS] are a citizen of Israel and Spain
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q801'], [{'concept': 'Q502895'}, 'P27', 'Q29']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P27 resource:Q801 . ?x property:P27 resource:Q29 }
Daniel Barenboim Jan Martín Marc Rich Henrique Cymerman Cordelia Edvardson Vladimir Gusinsky
Daniel Barenboim, Jan Martín, Marc Rich, Henrique Cymerman, Cordelia Edvardson and Vladimir Gusinsky are a citizen of Israel and Spain
Daniel Barenboim Jan Martín Marc Rich Henrique Cymerman Cordelia Edvardson Vladimir Gusinsky
action filter_type
action intersection
action find_reverse
entity Israel
relation country of citizenship
action find_reverse
entity Spain
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Israel'], [{'concept': 'common name'}, 'country of citizenship', 'Spain']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:country_of_citizenship resource:Israel . ?x property:country_of_citizenship resource:Spain }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2896341
P641
Q349
USER
Which sport was that person a part of ?
(Q2896341,P641,c(Q349))
action filter_type
action find
entity Q2896341
relation P641
type Q349
['Q2896341', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q2896341 property:P641 ?v . ?v rdf:type ontology:Q349 }
Jan Martín
action filter_type
action find
entity Jan Martín
relation sport
type sport
['Jan Martín', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Jan_Martín property:sport ?v . ?v rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q2896341
SYSTEM
Did you mean Jan Martín ?
Q152768 Q2896341 Q706542 Q3914714 Q24999 Q1361996
(Q152768,P641,c(Q349)) (Q2896341,P641,c(Q349)) (Q706542,P641,c(Q349)) (Q3914714,P641,c(Q349)) (Q24999,P641,c(Q349)) (Q1361996,P641,c(Q349))
[ANSWER]
['Q152768', 'P641', {'concept': 'Q349'}] ['Q2896341', 'P641', {'concept': 'Q349'}] ['Q706542', 'P641', {'concept': 'Q349'}] ['Q3914714', 'P641', {'concept': 'Q349'}] ['Q24999', 'P641', {'concept': 'Q349'}] ['Q1361996', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q2896341 property:P641 ?v . ?v rdf:type ontology:Q349 }
Daniel Barenboim Jan Martín Marc Rich Henrique Cymerman Cordelia Edvardson Vladimir Gusinsky
Did you mean Jan Martín ?
Jan Martín
['Daniel Barenboim', 'sport', {'concept': 'sport'}] ['Jan Martín', 'sport', {'concept': 'sport'}] ['Marc Rich', 'sport', {'concept': 'sport'}] ['Henrique Cymerman', 'sport', {'concept': 'sport'}] ['Cordelia Edvardson', 'sport', {'concept': 'sport'}] ['Vladimir Gusinsky', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Jan_Martín property:sport ?v . ?v rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2896341,P641,c(Q349))
['Q2896341', 'P641', {'concept': 'Q349'}]
['Jan Martín', 'sport', {'concept': 'sport'}]
[]
Q5372
SYSTEM
basketball
Q5372
(Q2896341,P641,c(Q349))
action filter_type
action find
entity Q2896341
relation P641
type Q349
The [ANSWER] was that person a part of
['Q2896341', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q2896341 property:P641 ?v . ?v rdf:type ontology:Q349 }
basketball
The basketball was that person a part of
basketball
action filter_type
action find
entity Jan Martín
relation sport
type sport
['Jan Martín', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Jan_Martín property:sport ?v . ?v rdf:type ontology:sport }
[]