Simple Question (Direct)
Simple Question
Q463745
P1412
Q34770
USER
Which language can Juan Henríquez de Villalobos read ?
(Q463745,P1412,c(Q34770))
action filter_type
action find
entity Q463745
relation P1412
type Q34770
['Q463745', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q463745 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Juan Henríquez de Villalobos
action filter_type
action find
entity Juan Henríquez de Villalobos
relation languages spoken, written or signed
type language
['Juan Henríquez de Villalobos', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Juan_Henríquez_de_Villalobos property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q463745,P1412,c(Q34770))
action filter_type
action find
entity Q463745
relation P1412
type Q34770
Juan Henríquez de Villalobos can read in [ANSWER]
['Q463745', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q463745 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Spanish
Juan Henríquez de Villalobos can read in Spanish
Spanish
action filter_type
action find
entity Juan Henríquez de Villalobos
relation languages spoken, written or signed
type language
['Juan Henríquez de Villalobos', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Juan_Henríquez_de_Villalobos property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q463745
P20
Q56061
USER
Where did the demise of Juan Henríquez de Villalobos occur ?
(Q463745,P20,c(Q56061))
action filter_type
action find
entity Q463745
relation P20
type Q56061
['Q463745', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q463745 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Juan Henríquez de Villalobos
action filter_type
action find
entity Juan Henríquez de Villalobos
relation place of death
type administrative territorial entity
['Juan Henríquez de Villalobos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Juan_Henríquez_de_Villalobos property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q463745,P20,c(Q56061))
action filter_type
action find
entity Q463745
relation P20
type Q56061
The demise of Juan Henríquez de Villalobos occurred of [ANSWER]
['Q463745', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q463745 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Madrid
The demise of Juan Henríquez de Villalobos occurred of Madrid
Madrid
action filter_type
action find
entity Juan Henríquez de Villalobos
relation place of death
type administrative territorial entity
['Juan Henríquez de Villalobos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Juan_Henríquez_de_Villalobos property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16719200
Q56061
USER
And how about Miklós Széchenyi de Salvar-Felsovidék?
(Q16719200,P20,c(Q56061))
action filter_type
action find
entity Q16719200
relation P20
type Q56061
['Q16719200', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q16719200 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Miklós Széchenyi de Salvar-Felsovidék
action filter_type
action find
entity Miklós Széchenyi de Salvar-Felsovidék
relation place of death
type administrative territorial entity
['Miklós Széchenyi de Salvar-Felsovidék', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Miklós_Széchenyi_de_Salvar-Felsovidék property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q16719200,P20,c(Q56061))
action filter_type
action find
entity Q16719200
relation P20
type Q56061
[ANSWER]
['Q16719200', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q16719200 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Budapest
Budapest
action filter_type
action find
entity Miklós Széchenyi de Salvar-Felsovidék
relation place of death
type administrative territorial entity
['Miklós Széchenyi de Salvar-Felsovidék', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Miklós_Széchenyi_de_Salvar-Felsovidék property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1781 Q75978 Q253825
P190
Q515
USER
Is that administrative territory a sister city of Calamba and Salcea ?
(Q1781,P190,Q75978) (Q1781,P190,Q253825)
action is_in
entity Q1781
action intersection
action find_reverse
entity Q75978
relation P190
action find_reverse
entity Q253825
relation P190
['Q1781', 'P190', 'Q75978'] ['Q1781', 'P190', 'Q253825']
ASK WHERE { resource:Q1781 property:P190 resource:Q75978 . resource:Q1781 property:P190 resource:Q253825 }
Budapest Calamba Salcea
action is_in
entity Budapest
action intersection
action find_reverse
entity Calamba
relation sister city
action find_reverse
entity Salcea
relation sister city
['Budapest', 'sister city', 'Calamba'] ['Budapest', 'sister city', 'Salcea']
ASK WHERE { resource:Budapest property:sister_city resource:Calamba . resource:Budapest property:sister_city resource:Salcea }
[]
city
SYSTEM
NO
(Q1781,P190,Q75978) (Q1781,P190,Q253825)
action is_in
entity Q1781
action intersection
action find_reverse
entity Q75978
relation P190
action find_reverse
entity Q253825
relation P190
[ANSWER]
['Q1781', 'P190', 'Q75978'] ['Q1781', 'P190', 'Q253825']
ASK WHERE { resource:Q1781 property:P190 resource:Q75978 . resource:Q1781 property:P190 resource:Q253825 }
No
action is_in
entity Budapest
action intersection
action find_reverse
entity Calamba
relation sister city
action find_reverse
entity Salcea
relation sister city
['Budapest', 'sister city', 'Calamba'] ['Budapest', 'sister city', 'Salcea']
ASK WHERE { resource:Budapest property:sister_city resource:Calamba . resource:Budapest property:sister_city resource:Salcea }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q463745 Q267713
P27
Q15617994
USER
Does Juan Henríquez de Villalobos belong to Cimego ?
(Q463745,P27,Q267713)
action is_in
entity Q267713
action find
entity Q463745
relation P27
['Q463745', 'P27', 'Q267713']
ASK WHERE { resource:Q463745 property:P27 resource:Q267713 }
Juan Henríquez de Villalobos Cimego
action is_in
entity Cimego
action find
entity Juan Henríquez de Villalobos
relation country of citizenship
['Juan Henríquez de Villalobos', 'country of citizenship', 'Cimego']
ASK WHERE { resource:Juan_Henríquez_de_Villalobos property:country_of_citizenship resource:Cimego }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q463745,P27,Q267713)
action is_in
entity Q267713
action find
entity Q463745
relation P27
[ANSWER]
['Q463745', 'P27', 'Q267713']
ASK WHERE { resource:Q463745 property:P27 resource:Q267713 }
No
action is_in
entity Cimego
action find
entity Juan Henríquez de Villalobos
relation country of citizenship
['Juan Henríquez de Villalobos', 'country of citizenship', 'Cimego']
ASK WHERE { resource:Juan_Henríquez_de_Villalobos property:country_of_citizenship resource:Cimego }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2897899 Q2807
P6 P175
Q502895
USER
Which people are the heads of the government of Madrid or were staged by The Concert Sinatra ?
OR((Q2807,P6,c(Q502895)), (Q2897899,P175,c(Q502895)))
action filter_type
action union
action find
entity Q2807
relation P6
action find
entity Q2897899
relation P175
type Q502895
{'OR': [['Q2807', 'P6', {'concept': 'Q502895'}], ['Q2897899', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q2807 property:P6 ?w } UNION { resource:Q2897899 property:P175 ?w } } . ?w rdf:type ontology:Q502895 }
The Concert Sinatra Madrid
action filter_type
action union
action find
entity Madrid
relation head of government
action find
entity The Concert Sinatra
relation performer
type common name
{'OR': [['Madrid', 'head of government', {'concept': 'common name'}], ['The Concert Sinatra', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Madrid property:head_of_government ?w } UNION { resource:The_Concert_Sinatra property:performer ?w } } . ?w rdf:type ontology:common_name }
[]
common name
Q2733245 Q5992655 Q19592761 Q467829 Q3391346 Q40912 Q2748778 Q41266 Q3186388 Q9025210
SYSTEM
Some of them are Juan Barranco Gallardo, Manuel Cobo, Manuela Carmena, Alberto Ruiz-Gallardón, Juan de Arespacochaga, Frank Sinatra, José María Álvarez del Manzano, Ana Botella, José Luis Álvarez, Luis María Huete
Q9025210 Q2748778 Q5992655 Q467829 Q40912 Q1344166 Q41266 Q19592761 Q2733245 Q2827364 Q3391346 Q3186388
OR((Q2807,P6,c(Q502895)), (Q2897899,P175,c(Q502895)))
action filter_type
action union
action find
entity Q2807
relation P6
action find
entity Q2897899
relation P175
type Q502895
[ANSWERS] are the heads of the government of Madrid or were staged by The Concert Sinatra
{'OR': [['Q2807', 'P6', {'concept': 'Q502895'}], ['Q2897899', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q2807 property:P6 ?w } UNION { resource:Q2897899 property:P175 ?w } } . ?w rdf:type ontology:Q502895 }
Luis María Huete José María Álvarez del Manzano Manuel Cobo Alberto Ruiz-Gallardón Frank Sinatra Enrique Tierno Galván Ana Botella Manuela Carmena Juan Barranco Gallardo Agustín Rodríguez Sahagún Juan de Arespacochaga José Luis Álvarez
Juan Barranco Gallardo, Manuel Cobo, Manuela Carmena, Alberto Ruiz-Gallardón, Juan de Arespacochaga, Frank Sinatra, José María Álvarez del Manzano, Ana Botella, José Luis Álvarez and Luis María Huete are the heads of the government of Madrid or were staged by The Concert Sinatra
Juan Barranco Gallardo Manuel Cobo Manuela Carmena Alberto Ruiz-Gallardón Juan de Arespacochaga Frank Sinatra José María Álvarez del Manzano Ana Botella José Luis Álvarez Luis María Huete
action filter_type
action union
action find
entity Madrid
relation head of government
action find
entity The Concert Sinatra
relation performer
type common name
{'OR': [['Madrid', 'head of government', {'concept': 'common name'}], ['The Concert Sinatra', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Madrid property:head_of_government ?w } UNION { resource:The_Concert_Sinatra property:performer ?w } } . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2748778
P106
Q12737077
USER
What is the job of that person ?
(Q2748778,P106,c(Q12737077))
action filter_type
action find
entity Q2748778
relation P106
type Q12737077
['Q2748778', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q2748778 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
José María Álvarez del Manzano
action filter_type
action find
entity José María Álvarez del Manzano
relation occupation
type occupation
['José María Álvarez del Manzano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:José_María_Álvarez_del_Manzano property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q41266
SYSTEM
Did you mean Ana Botella ?
Q2733245 Q5992655 Q19592761 Q467829 Q3391346 Q40912 Q2748778 Q41266 Q3186388 Q9025210
(Q2733245,P106,c(Q12737077)) (Q5992655,P106,c(Q12737077)) (Q19592761,P106,c(Q12737077)) (Q467829,P106,c(Q12737077)) (Q3391346,P106,c(Q12737077)) (Q40912,P106,c(Q12737077)) (Q2748778,P106,c(Q12737077)) (Q41266,P106,c(Q12737077)) (Q3186388,P106,c(Q12737077)) (Q9025210,P106,c(Q12737077))
[ANSWER]
['Q2733245', 'P106', {'concept': 'Q12737077'}] ['Q5992655', 'P106', {'concept': 'Q12737077'}] ['Q19592761', 'P106', {'concept': 'Q12737077'}] ['Q467829', 'P106', {'concept': 'Q12737077'}] ['Q3391346', 'P106', {'concept': 'Q12737077'}] ['Q40912', 'P106', {'concept': 'Q12737077'}] ['Q2748778', 'P106', {'concept': 'Q12737077'}] ['Q41266', 'P106', {'concept': 'Q12737077'}] ['Q3186388', 'P106', {'concept': 'Q12737077'}] ['Q9025210', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q2748778 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Juan Barranco Gallardo Manuel Cobo Manuela Carmena Alberto Ruiz-Gallardón Juan de Arespacochaga Frank Sinatra José María Álvarez del Manzano Ana Botella José Luis Álvarez Luis María Huete
Did you mean Ana Botella ?
Ana Botella
['Juan Barranco Gallardo', 'occupation', {'concept': 'occupation'}] ['Manuel Cobo', 'occupation', {'concept': 'occupation'}] ['Manuela Carmena', 'occupation', {'concept': 'occupation'}] ['Alberto Ruiz-Gallardón', 'occupation', {'concept': 'occupation'}] ['Juan de Arespacochaga', 'occupation', {'concept': 'occupation'}] ['Frank Sinatra', 'occupation', {'concept': 'occupation'}] ['José María Álvarez del Manzano', 'occupation', {'concept': 'occupation'}] ['Ana Botella', 'occupation', {'concept': 'occupation'}] ['José Luis Álvarez', 'occupation', {'concept': 'occupation'}] ['Luis María Huete', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:José_María_Álvarez_del_Manzano property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant José María Álvarez del Manzano. Could you tell me the answer for that?
(Q2748778,P106,c(Q12737077))
Q2748778
['Q2748778', 'P106', {'concept': 'Q12737077'}]
['José María Álvarez del Manzano', 'occupation', {'concept': 'occupation'}]
[]
Q82955
SYSTEM
politician
Q82955
(Q2748778,P106,c(Q12737077))
action filter_type
action find
entity Q2748778
relation P106
type Q12737077
The job of that person is a [ANSWER]
['Q2748778', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q2748778 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
politician
The job of that person is a politician
politician
action filter_type
action find
entity José María Álvarez del Manzano
relation occupation
type occupation
['José María Álvarez del Manzano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:José_María_Álvarez_del_Manzano property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P921
Q223393 Q2342494
USER
How many literary genres and collectables have that occupation as their main topic ?
(c(Q223393),P921,Q82955) (c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955) (c(Q2342494),P921,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:P921 resource:Q82955 . ?b rdf:type ontology:Q223393 } UNION { ?b property:P921 resource:Q82955 . ?b rdf:type ontology:Q2342494 } }
action count
action union
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:main_subject resource:politician . ?b rdf:type ontology:literary_genre } UNION { ?b property:main_subject resource:politician . ?b rdf:type ontology:collectable } }
[]
literary genre collectable
SYSTEM
1 literary genres and 1 collectables
Q21815179 Q21601944
(c(Q223393),P921,Q82955) (c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955) (c(Q2342494),P921,Q82955)
action count
action union
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
action filter_type
action find_reverse
entity Q82955
relation P921
type Q2342494
[ANSWER]
[{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:P921 resource:Q82955 . ?b rdf:type ontology:Q223393 } UNION { ?b property:P921 resource:Q82955 . ?b rdf:type ontology:Q2342494 } }
worldstatesmen Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
1 literary genres and 1 collectables
action count
action union
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
action filter_type
action find_reverse
entity politician
relation main subject
type collectable
[{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { ?b property:main_subject resource:politician . ?b rdf:type ontology:literary_genre } UNION { ?b property:main_subject resource:politician . ?b rdf:type ontology:collectable } }
[]