Simple Question (Direct)
Simple Question
Q8078823
P21
Q290
USER
Which sex does Óscar Gans have ?
(Q8078823,P21,c(Q290))
action filter_type
action find
entity Q8078823
relation P21
type Q290
['Q8078823', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q8078823 property:P21 ?h . ?h rdf:type ontology:Q290 }
Óscar Gans
action filter_type
action find
entity Óscar Gans
relation gender
type sex
['Óscar Gans', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Óscar_Gans property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q8078823,P21,c(Q290))
action filter_type
action find
entity Q8078823
relation P21
type Q290
Óscar Gans has a [ANSWER]
['Q8078823', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q8078823 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Óscar Gans has a male
male
action filter_type
action find
entity Óscar Gans
relation gender
type sex
['Óscar Gans', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Óscar_Gans property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8078823
P19
Q56061
USER
Which administrative territory was Óscar Gans born in ?
(Q8078823,P19,c(Q56061))
action filter_type
action find
entity Q8078823
relation P19
type Q56061
['Q8078823', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q8078823 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Óscar Gans
action filter_type
action find
entity Óscar Gans
relation place of birth
type administrative territorial entity
['Óscar Gans', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Óscar_Gans property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1563
SYSTEM
Havana
Q1563
(Q8078823,P19,c(Q56061))
action filter_type
action find
entity Q8078823
relation P19
type Q56061
Óscar Gans was born in [ANSWER]
['Q8078823', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q8078823 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Havana
Óscar Gans was born in Havana
Havana
action filter_type
action find
entity Óscar Gans
relation place of birth
type administrative territorial entity
['Óscar Gans', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Óscar_Gans property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1563
P190
Q56061
USER
How many administrative territories are twin towns of Havana ?
(Q1563,P190,c(Q56061))
action count
action filter_type
action find
entity Q1563
relation P190
type Q56061
['Q1563', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q1563 property:P190 ?a }
Havana
action count
action filter_type
action find
entity Havana
relation sister city
type administrative territorial entity
['Havana', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Havana property:sister_city ?a }
[]
administrative territorial entity
SYSTEM
20
Q8678 Q5836 Q42053 Q34820 Q1524 Q4093 Q1489 Q8717 Q12273 Q510413 Q34370 Q406 Q190187 Q174 Q124739 Q15682 Q2807 Q2280 Q79875 Q1492
(Q1563,P190,c(Q56061))
action count
action filter_type
action find
entity Q1563
relation P190
type Q56061
[ANSWER]
['Q1563', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q1563 property:P190 ?a }
Rio de Janeiro Toledo Isfahan Santo Domingo Athens Glasgow Mexico City Seville Gijón Sullana Rotterdam Istanbul Sintra São Paulo Tijuana Cádiz Madrid Minsk Mobile Barcelona
20
action count
action filter_type
action find
entity Havana
relation sister city
type administrative territorial entity
['Havana', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Havana property:sister_city ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q104400
P190
Q56061
USER
And also tell me about Hamar?
(Q104400,P190,c(Q56061))
action count
action filter_type
action find
entity Q104400
relation P190
type Q56061
['Q104400', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q104400 property:P190 ?p . ?p rdf:type ontology:Q56061 }
Hamar
action count
action filter_type
action find
entity Hamar
relation sister city
type administrative territorial entity
['Hamar', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Hamar property:sister_city ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
3
Q921052 Q309348 Q152418
(Q104400,P190,c(Q56061))
action count
action filter_type
action find
entity Q104400
relation P190
type Q56061
[ANSWER]
['Q104400', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q104400 property:P190 ?p . ?p rdf:type ontology:Q56061 }
Dalvík Khan Yunis Karmiel
3
action count
action filter_type
action find
entity Hamar
relation sister city
type administrative territorial entity
['Hamar', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Hamar property:sister_city ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q171639
Q56061
USER
And also tell me about Ashdod?
(Q171639,P190,c(Q56061))
action count
action filter_type
action find
entity Q171639
relation P190
type Q56061
['Q171639', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Q171639 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Ashdod
action count
action filter_type
action find
entity Ashdod
relation sister city
type administrative territorial entity
['Ashdod', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Ashdod property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
10
(Q171639,P190,c(Q56061))
action count
action filter_type
action find
entity Q171639
relation P190
type Q56061
[ANSWER]
['Q171639', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Q171639 property:P190 ?w . ?w rdf:type ontology:Q56061 }
10
action count
action filter_type
action find
entity Ashdod
relation sister city
type administrative territorial entity
['Ashdod', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Ashdod property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q171639
P551
Q502895
USER
Who reside at that administrative territory ?
action filter_type
action find_reverse
entity Q171639
relation P551
type Q502895
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P551 resource:Q171639 }
Ashdod
action filter_type
action find_reverse
entity Ashdod
relation residence
type common name
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:residence resource:Ashdod }
[]
common name
Q462726 Q2630091 Q16128579
SYSTEM
Sofa Landver, Ilan Gilon, Ariel Bendor
Q462726 Q2630091 Q16128579
action filter_type
action find_reverse
entity Q171639
relation P551
type Q502895
[ANSWERS] reside at that administrative territory
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P551 resource:Q171639 }
Sofa Landver Ilan Gilon Ariel Bendor
Sofa Landver, Ilan Gilon and Ariel Bendor reside at that administrative territory
Sofa Landver Ilan Gilon Ariel Bendor
action filter_type
action find_reverse
entity Ashdod
relation residence
type common name
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:residence resource:Ashdod }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q462726 Q2630091 Q16128579
P106
Q12737077
USER
What are the professions of Sofa Landver, Ilan Gilon and Ariel Bendor ?
(Q462726,P106,c(Q12737077)) (Q2630091,P106,c(Q12737077)) (Q16128579,P106,c(Q12737077))
action union
action filter_type
action find
entity Q462726
relation P106
type Q12737077
action filter_type
action find
entity Q2630091
relation P106
type Q12737077
action filter_type
action find
entity Q16128579
relation P106
type Q12737077
['Q462726', 'P106', {'concept': 'Q12737077'}] ['Q2630091', 'P106', {'concept': 'Q12737077'}] ['Q16128579', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { resource:Q2630091 property:P106 ?r . ?r rdf:type ontology:Q12737077 } UNION { ?r rdf:type ontology:Q12737077 . resource:Q462726 property:P106 ?r } }
Sofa Landver Ilan Gilon Ariel Bendor
action union
action filter_type
action find
entity Sofa Landver
relation occupation
type occupation
action filter_type
action find
entity Ilan Gilon
relation occupation
type occupation
action filter_type
action find
entity Ariel Bendor
relation occupation
type occupation
['Sofa Landver', 'occupation', {'concept': 'occupation'}] ['Ilan Gilon', 'occupation', {'concept': 'occupation'}] ['Ariel Bendor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { resource:Ilan_Gilon property:occupation ?r . ?r rdf:type ontology:occupation } UNION { ?r rdf:type ontology:occupation . resource:Sofa_Landver property:occupation ?r } }
[]
occupation
Q1622272 Q212980 Q82955
SYSTEM
university teacher, psychologist, politician
Q212980 Q82955 Q82955 Q1622272 Q177220
(Q462726,P106,c(Q12737077)) (Q2630091,P106,c(Q12737077)) (Q16128579,P106,c(Q12737077))
action union
action filter_type
action find
entity Q462726
relation P106
type Q12737077
action filter_type
action find
entity Q2630091
relation P106
type Q12737077
action filter_type
action find
entity Q16128579
relation P106
type Q12737077
The professions of Sofa Landver , Ilan Gilon and Ariel Bendor are a [ANSWERS]
['Q462726', 'P106', {'concept': 'Q12737077'}] ['Q2630091', 'P106', {'concept': 'Q12737077'}] ['Q16128579', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { resource:Q2630091 property:P106 ?r . ?r rdf:type ontology:Q12737077 } UNION { ?r rdf:type ontology:Q12737077 . resource:Q462726 property:P106 ?r } }
psychologist politician politician university teacher singer
The professions of Sofa Landver , Ilan Gilon and Ariel Bendor are a university teacher, psychologist and politician
university teacher psychologist politician
action union
action filter_type
action find
entity Sofa Landver
relation occupation
type occupation
action filter_type
action find
entity Ilan Gilon
relation occupation
type occupation
action filter_type
action find
entity Ariel Bendor
relation occupation
type occupation
['Sofa Landver', 'occupation', {'concept': 'occupation'}] ['Ilan Gilon', 'occupation', {'concept': 'occupation'}] ['Ariel Bendor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { resource:Ilan_Gilon property:occupation ?r . ?r rdf:type ontology:occupation } UNION { ?r rdf:type ontology:occupation . resource:Sofa_Landver property:occupation ?r } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1563
P159
Q7210356
USER
Which political organizations have their head office location at Havana ?
(c(Q7210356),P159,Q1563)
action filter_type
action find_reverse
entity Q1563
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q1563']
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q1563 . ?h rdf:type ontology:Q7210356 }
Havana
action filter_type
action find_reverse
entity Havana
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Havana']
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Havana . ?h rdf:type ontology:political_organization }
[]
political organization
Q1525551 Q9056216 Q5191999
SYSTEM
Partido Ortodoxo, National Liberal Party of Cuba, Cuban Arco Progresista (Social-Democratic) Party
Q9056216 Q1525551 Q5191999 Q32752 Q15980912 Q2881637
(c(Q7210356),P159,Q1563)
action filter_type
action find_reverse
entity Q1563
relation P159
type Q7210356
[ANSWERS] have their head office location at Havana
[{'concept': 'Q7210356'}, 'P159', 'Q1563']
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q1563 . ?h rdf:type ontology:Q7210356 }
National Liberal Party of Cuba Partido Ortodoxo Cuban Arco Progresista (Social-Democratic) Party Partido Auténtico Progressive Action Party Liberal Party of Cuba
Partido Ortodoxo, National Liberal Party of Cuba and Cuban Arco Progresista (Social-Democratic) Party have their head office location at Havana
Partido Ortodoxo National Liberal Party of Cuba Cuban Arco Progresista (Social-Democratic) Party
action filter_type
action find_reverse
entity Havana
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Havana']
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Havana . ?h rdf:type ontology:political_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1525551
P463
Q502895
USER
Who is a member of that political organization ?
(c(Q502895),P463,Q1525551)
action filter_type
action find_reverse
entity Q1525551
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q1525551']
SELECT DISTINCT ?p WHERE { ?p property:P463 resource:Q1525551 . ?p rdf:type ontology:Q502895 }
Partido Ortodoxo
action filter_type
action find_reverse
entity Partido Ortodoxo
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Partido Ortodoxo']
SELECT DISTINCT ?p WHERE { ?p property:member_of resource:Partido_Ortodoxo . ?p rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1525551
SYSTEM
Did you mean Partido Ortodoxo ?
Q1525551 Q9056216 Q5191999
(c(Q502895),P463,Q1525551) (c(Q502895),P463,Q9056216) (c(Q502895),P463,Q5191999)
[ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q1525551'] [{'concept': 'Q502895'}, 'P463', 'Q9056216'] [{'concept': 'Q502895'}, 'P463', 'Q5191999']
SELECT DISTINCT ?p WHERE { ?p property:P463 resource:Q1525551 . ?p rdf:type ontology:Q502895 }
Partido Ortodoxo National Liberal Party of Cuba Cuban Arco Progresista (Social-Democratic) Party
Did you mean Partido Ortodoxo ?
Partido Ortodoxo
[{'concept': 'common name'}, 'member of', 'Partido Ortodoxo'] [{'concept': 'common name'}, 'member of', 'National Liberal Party of Cuba'] [{'concept': 'common name'}, 'member of', 'Cuban Arco Progresista (Social-Democratic) Party']
SELECT DISTINCT ?p WHERE { ?p property:member_of resource:Partido_Ortodoxo . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P463,Q1525551)
[{'concept': 'Q502895'}, 'P463', 'Q1525551']
[{'concept': 'common name'}, 'member of', 'Partido Ortodoxo']
[]
Q11256
SYSTEM
Fidel Castro
Q11256
(c(Q502895),P463,Q1525551)
action filter_type
action find_reverse
entity Q1525551
relation P463
type Q502895
A member of that political organization is President [ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q1525551']
SELECT DISTINCT ?p WHERE { ?p property:P463 resource:Q1525551 . ?p rdf:type ontology:Q502895 }
Fidel Castro
A member of that political organization is President Fidel Castro
Fidel Castro
action filter_type
action find_reverse
entity Partido Ortodoxo
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Partido Ortodoxo']
SELECT DISTINCT ?p WHERE { ?p property:member_of resource:Partido_Ortodoxo . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1525551
P1142
Q7257
USER
Which ideology does Partido Ortodoxo believe in ?
(Q1525551,P1142,c(Q7257))
action filter_type
action find
entity Q1525551
relation P1142
type Q7257
['Q1525551', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7257 . resource:Q1525551 property:P1142 ?x }
Partido Ortodoxo
action filter_type
action find
entity Partido Ortodoxo
relation political ideology
type ideology
['Partido Ortodoxo', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:ideology . resource:Partido_Ortodoxo property:political_ideology ?x }
[]
ideology
Q6235
SYSTEM
nationalism
Q6235
(Q1525551,P1142,c(Q7257))
action filter_type
action find
entity Q1525551
relation P1142
type Q7257
Partido Ortodoxo believes in [ANSWER]
['Q1525551', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7257 . resource:Q1525551 property:P1142 ?x }
nationalism
Partido Ortodoxo believes in nationalism
nationalism
action filter_type
action find
entity Partido Ortodoxo
relation political ideology
type ideology
['Partido Ortodoxo', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:ideology . resource:Partido_Ortodoxo property:political_ideology ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11256
P451
Q502895
USER
Who had Fidel Castro as their partner ?
(Q11256,P451,c(Q502895))
action filter_type
action find
entity Q11256
relation P451
type Q502895
['Q11256', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q11256 property:P451 ?n . ?n rdf:type ontology:Q502895 }
Fidel Castro
action filter_type
action find
entity Fidel Castro
relation partner
type common name
['Fidel Castro', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Fidel_Castro property:partner ?n . ?n rdf:type ontology:common_name }
[]
common name
Q19516418 Q27649090
SYSTEM
Natalia Revuelta Clews, Dalia Soto del Valle
Q19516418 Q27649090
(Q11256,P451,c(Q502895))
action filter_type
action find
entity Q11256
relation P451
type Q502895
[ANSWERS] had Fidel Castro as their partner
['Q11256', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q11256 property:P451 ?n . ?n rdf:type ontology:Q502895 }
Natalia Revuelta Clews Dalia Soto del Valle
Natalia Revuelta Clews and Dalia Soto del Valle had Fidel Castro as their partner
Natalia Revuelta Clews Dalia Soto del Valle
action filter_type
action find
entity Fidel Castro
relation partner
type common name
['Fidel Castro', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Fidel_Castro property:partner ?n . ?n rdf:type ontology:common_name }
[]