Simple Question (Direct)
Simple Question
Q5258980
P106
Q12737077
USER
What is the profession of Dennis Stevens ?
(Q5258980,P106,c(Q12737077))
action filter_type
action find
entity Q5258980
relation P106
type Q12737077
['Q5258980', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q5258980 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Dennis Stevens
action filter_type
action find
entity Dennis Stevens
relation occupation
type occupation
['Dennis Stevens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Dennis_Stevens property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5258980,P106,c(Q12737077))
action filter_type
action find
entity Q5258980
relation P106
type Q12737077
The profession of Dennis Stevens is an [ANSWER]
['Q5258980', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q5258980 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
association football player
The profession of Dennis Stevens is an association football player
association football player
action filter_type
action find
entity Dennis Stevens
relation occupation
type occupation
['Dennis Stevens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Dennis_Stevens property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5258980
P19
Q56061
USER
Which administrative territory is the birthplace of Dennis Stevens ?
(Q5258980,P19,c(Q56061))
action filter_type
action find
entity Q5258980
relation P19
type Q56061
['Q5258980', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q5258980 property:P19 ?p }
Dennis Stevens
action filter_type
action find
entity Dennis Stevens
relation place of birth
type administrative territorial entity
['Dennis Stevens', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Dennis_Stevens property:place_of_birth ?p }
[]
administrative territorial entity
Q213832
SYSTEM
Dudley
Q213832
(Q5258980,P19,c(Q56061))
action filter_type
action find
entity Q5258980
relation P19
type Q56061
The [ANSWER] is the birthplace of Dennis Stevens
['Q5258980', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q5258980 property:P19 ?p }
Dudley
The Dudley is the birthplace of Dennis Stevens
Dudley
action filter_type
action find
entity Dennis Stevens
relation place of birth
type administrative territorial entity
['Dennis Stevens', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Dennis_Stevens property:place_of_birth ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q213832
P190
Q486972
USER
Which human settlement is a sister city of that administrative territory ?
(c(Q486972),P190,Q213832)
action filter_type
action find
entity Q213832
relation P190
type Q486972
[{'concept': 'Q486972'}, 'P190', 'Q213832']
SELECT DISTINCT ?a WHERE { resource:Q213832 property:P190 ?a . ?a rdf:type ontology:Q486972 }
Dudley
action filter_type
action find
entity Dudley
relation sister city
type human settlement
[{'concept': 'human settlement'}, 'sister city', 'Dudley']
SELECT DISTINCT ?a WHERE { resource:Dudley property:sister_city ?a . ?a rdf:type ontology:human_settlement }
[]
human settlement
Q24879
SYSTEM
Bremen
Q24879
(c(Q486972),P190,Q213832)
action filter_type
action find
entity Q213832
relation P190
type Q486972
[ANSWER] is a sister city of that administrative territory
[{'concept': 'Q486972'}, 'P190', 'Q213832']
SELECT DISTINCT ?a WHERE { resource:Q213832 property:P190 ?a . ?a rdf:type ontology:Q486972 }
Bremen
Bremen is a sister city of that administrative territory
Bremen
action filter_type
action find
entity Dudley
relation sister city
type human settlement
[{'concept': 'human settlement'}, 'sister city', 'Dudley']
SELECT DISTINCT ?a WHERE { resource:Dudley property:sister_city ?a . ?a rdf:type ontology:human_settlement }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26701273 Q213832
P17
Q15617994
USER
Which administrative territories are Dudley or mayor of Enériz situated in ?
OR((Q213832,P17,c(Q15617994)), (Q26701273,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q213832
relation P17
action find
entity Q26701273
relation P17
type Q15617994
{'OR': [['Q213832', 'P17', {'concept': 'Q15617994'}], ['Q26701273', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?j ) { ( resource:Q213832 ) ( resource:Q26701273 ) } . ?j property:P17 ?o } . ?o rdf:type ontology:Q15617994 }
mayor of Enériz Dudley
action filter_type
action union
action find
entity Dudley
relation country
action find
entity mayor of Enériz
relation country
type designation for an administrative territorial entity
{'OR': [['Dudley', 'country', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Enériz', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?j ) { ( resource:Dudley ) ( resource:mayor_of_Enériz ) } . ?j property:country ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q145
SYSTEM
Spain, United Kingdom
Q29 Q145
OR((Q213832,P17,c(Q15617994)), (Q26701273,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q213832
relation P17
action find
entity Q26701273
relation P17
type Q15617994
Dudley or mayor of Enériz are situated in [ANSWERS]
{'OR': [['Q213832', 'P17', {'concept': 'Q15617994'}], ['Q26701273', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?j ) { ( resource:Q213832 ) ( resource:Q26701273 ) } . ?j property:P17 ?o } . ?o rdf:type ontology:Q15617994 }
Spain United Kingdom
Dudley or mayor of Enériz are situated in Spain and United Kingdom
Spain United Kingdom
action filter_type
action union
action find
entity Dudley
relation country
action find
entity mayor of Enériz
relation country
type designation for an administrative territorial entity
{'OR': [['Dudley', 'country', {'concept': 'designation for an administrative territorial entity'}], ['mayor of Enériz', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?j ) { ( resource:Dudley ) ( resource:mayor_of_Enériz ) } . ?j property:country ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26694343 Q26701273
P1313
Q1048835
USER
Which political territories have mayor of Enériz or mayor of Aitona as title of head of government ?
OR((c(Q1048835),P1313,Q26701273), (c(Q1048835),P1313,Q26694343))
action filter_type
action union
action find_reverse
entity Q26701273
relation P1313
action find_reverse
entity Q26694343
relation P1313
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P1313', 'Q26701273'], [{'concept': 'Q1048835'}, 'P1313', 'Q26694343']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?g ) { ( resource:Q26701273 ) ( resource:Q26694343 ) } . ?v property:P1313 ?g } . ?v rdf:type ontology:Q1048835 }
mayor of Aitona mayor of Enériz
action filter_type
action union
action find_reverse
entity mayor of Enériz
relation office held by head of government
action find_reverse
entity mayor of Aitona
relation office held by head of government
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Enériz'], [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Aitona']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?g ) { ( resource:mayor_of_Enériz ) ( resource:mayor_of_Aitona ) } . ?v property:office_held_by_head_of_government ?g } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1646588 Q956576
SYSTEM
Aitona, Enériz
Q1646588 Q956576
OR((c(Q1048835),P1313,Q26701273), (c(Q1048835),P1313,Q26694343))
action filter_type
action union
action find_reverse
entity Q26701273
relation P1313
action find_reverse
entity Q26694343
relation P1313
type Q1048835
[ANSWERS] have mayor of Enériz or mayor of Aitona as title of head of government
{'OR': [[{'concept': 'Q1048835'}, 'P1313', 'Q26701273'], [{'concept': 'Q1048835'}, 'P1313', 'Q26694343']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?g ) { ( resource:Q26701273 ) ( resource:Q26694343 ) } . ?v property:P1313 ?g } . ?v rdf:type ontology:Q1048835 }
Aitona Enériz
Aitona and Enériz have mayor of Enériz or mayor of Aitona as title of head of government
Aitona Enériz
action filter_type
action union
action find_reverse
entity mayor of Enériz
relation office held by head of government
action find_reverse
entity mayor of Aitona
relation office held by head of government
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Enériz'], [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Aitona']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?g ) { ( resource:mayor_of_Enériz ) ( resource:mayor_of_Aitona ) } . ?v property:office_held_by_head_of_government ?g } . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1646588 Q956576
P47
Q1048835
USER
Which political territories do Aitona and Enériz share a border with ?
(c(Q1048835),P47,Q1646588) (c(Q1048835),P47,Q956576)
action union
action filter_type
action find
entity Q1646588
relation P47
type Q1048835
action filter_type
action find
entity Q956576
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q1646588'] [{'concept': 'Q1048835'}, 'P47', 'Q956576']
SELECT DISTINCT ?o WHERE { { resource:Q1646588 property:P47 ?o . ?o rdf:type ontology:Q1048835 } UNION { ?o rdf:type ontology:Q1048835 . resource:Q956576 property:P47 ?o } }
Aitona Enériz
action union
action filter_type
action find
entity Aitona
relation shares border with
type political territorial entity
action filter_type
action find
entity Enériz
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Aitona'] [{'concept': 'political territorial entity'}, 'shares border with', 'Enériz']
SELECT DISTINCT ?o WHERE { { resource:Aitona property:shares_border_with ?o . ?o rdf:type ontology:political_territorial_entity } UNION { ?o rdf:type ontology:political_territorial_entity . resource:Enériz property:shares_border_with ?o } }
[]
political territorial entity
Q904212 Q599367 Q1769607
SYSTEM
Fraga, Seròs, Llardecans
Q904212 Q1901336 Q599367 Q1769607 Q599382 Q1766622 Q519017
(c(Q1048835),P47,Q1646588) (c(Q1048835),P47,Q956576)
action union
action filter_type
action find
entity Q1646588
relation P47
type Q1048835
action filter_type
action find
entity Q956576
relation P47
type Q1048835
[ANSWERS] Aitona and Enériz share a border with
[{'concept': 'Q1048835'}, 'P47', 'Q1646588'] [{'concept': 'Q1048835'}, 'P47', 'Q956576']
SELECT DISTINCT ?o WHERE { { resource:Q1646588 property:P47 ?o . ?o rdf:type ontology:Q1048835 } UNION { ?o rdf:type ontology:Q1048835 . resource:Q956576 property:P47 ?o } }
Fraga Sarroca de Lleida Seròs Llardecans Torres de Segre Soses Adiós, Navarre
Fraga, Seròs and Llardecans Aitona and Enériz share a border with
Fraga Seròs Llardecans
action union
action filter_type
action find
entity Aitona
relation shares border with
type political territorial entity
action filter_type
action find
entity Enériz
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Aitona'] [{'concept': 'political territorial entity'}, 'shares border with', 'Enériz']
SELECT DISTINCT ?o WHERE { { resource:Aitona property:shares_border_with ?o . ?o rdf:type ontology:political_territorial_entity } UNION { ?o rdf:type ontology:political_territorial_entity . resource:Enériz property:shares_border_with ?o } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q904212
P20
Q502895
USER
Who died in that political territory ?
(c(Q502895),P20,Q904212)
action filter_type
action find_reverse
entity Q904212
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q904212']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q904212 . ?r rdf:type ontology:Q502895 }
Fraga
action filter_type
action find_reverse
entity Fraga
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Fraga']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Fraga . ?r rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1769607
SYSTEM
Did you mean Llardecans ?
Q904212 Q599367 Q1769607
(c(Q502895),P20,Q904212) (c(Q502895),P20,Q599367) (c(Q502895),P20,Q1769607)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q904212'] [{'concept': 'Q502895'}, 'P20', 'Q599367'] [{'concept': 'Q502895'}, 'P20', 'Q1769607']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q904212 . ?r rdf:type ontology:Q502895 }
Fraga Seròs Llardecans
Did you mean Llardecans ?
Llardecans
[{'concept': 'common name'}, 'place of death', 'Fraga'] [{'concept': 'common name'}, 'place of death', 'Seròs'] [{'concept': 'common name'}, 'place of death', 'Llardecans']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Fraga . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Fraga. Could you tell me the answer for that?
(c(Q502895),P20,Q904212)
Q904212
[{'concept': 'Q502895'}, 'P20', 'Q904212']
[{'concept': 'common name'}, 'place of death', 'Fraga']
[]
Q3735496 Q820683
SYSTEM
John of St. Thomas, Emilio Carlos Guruceta
Q3735496 Q820683
(c(Q502895),P20,Q904212)
action filter_type
action find_reverse
entity Q904212
relation P20
type Q502895
[ANSWERS] died in that political territory
[{'concept': 'Q502895'}, 'P20', 'Q904212']
SELECT DISTINCT ?r WHERE { ?r property:P20 resource:Q904212 . ?r rdf:type ontology:Q502895 }
John of St. Thomas Emilio Carlos Guruceta
John of St. Thomas and Emilio Carlos Guruceta died in that political territory
John of St. Thomas Emilio Carlos Guruceta
action filter_type
action find_reverse
entity Fraga
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Fraga']
SELECT DISTINCT ?r WHERE { ?r property:place_of_death resource:Fraga . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with atmost 79 political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
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 79
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:P530 ?s . ?x rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } UNION { ?x property:P530 ?s . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?s } . FILTER ( ?e <= 79 ) }
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 79
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:diplomatic_relation ?s . ?x rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } UNION { ?x property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?s } . FILTER ( ?e <= 79 ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
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 79
[ANSWERS] have diplomatic relationships with atmost 79 political territories and administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:P530 ?s . ?x rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } UNION { ?x property:P530 ?s . ?s rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?s } . FILTER ( ?e <= 79 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with atmost 79 political territories and administrative territories
Denmark Canada Austria
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 79
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?e ) WHERE { { ?x property:diplomatic_relation ?s . ?x rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } UNION { ?x property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?s } . FILTER ( ?e <= 79 ) }
[]