Simple Question (Direct)
Simple Question
Q669085
P641
Q349
USER
What was the sport that Carlos Varela was a part of ?
(Q669085,P641,c(Q349))
action filter_type
action find
entity Q669085
relation P641
type Q349
['Q669085', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q669085 property:P641 ?d . ?d rdf:type ontology:Q349 }
Carlos Varela
action filter_type
action find
entity Carlos Varela
relation sport
type sport
['Carlos Varela', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Carlos_Varela property:sport ?d . ?d rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q669085,P641,c(Q349))
action filter_type
action find
entity Q669085
relation P641
type Q349
The sport that Carlos Varela was a part of was the [ANSWER]
['Q669085', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q669085 property:P641 ?d . ?d rdf:type ontology:Q349 }
association football
The sport that Carlos Varela was a part of was the association football
association football
action filter_type
action find
entity Carlos Varela
relation sport
type sport
['Carlos Varela', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Carlos_Varela property:sport ?d . ?d rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q669085
P1412
Q34770
USER
Which language is spoken by that person ?
(Q2736,P1412,c(Q34770))
action filter_type
action find
entity Q669085
relation P1412
type Q34770
['Q2736', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q34770 . resource:Q669085 property:P1412 ?t }
Carlos Varela
action filter_type
action find
entity Carlos Varela
relation languages spoken, written or signed
type language
['association football', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:language . resource:Carlos_Varela property:languages_spoken,_written_or_signed ?t }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q2736,P1412,c(Q34770))
action filter_type
action find
entity Q669085
relation P1412
type Q34770
[ANSWER] is spoken by that person
['Q2736', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q34770 . resource:Q669085 property:P1412 ?t }
Spanish
Spanish is spoken by that person
Spanish
action filter_type
action find
entity Carlos Varela
relation languages spoken, written or signed
type language
['association football', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:language . resource:Carlos_Varela property:languages_spoken,_written_or_signed ?t }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15067952 Q669085
P27 P17
Q15617994
USER
Which administrative territories are Carlos Varela an inhabitant of or are Tamassari located in ?
OR((Q669085,P27,c(Q15617994)), (Q15067952,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q669085
relation P27
action find
entity Q15067952
relation P17
type Q15617994
{'OR': [['Q669085', 'P27', {'concept': 'Q15617994'}], ['Q15067952', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q669085 property:P27 ?b } UNION { resource:Q15067952 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Tamassari Carlos Varela
action filter_type
action union
action find
entity Carlos Varela
relation country of citizenship
action find
entity Tamassari
relation country
type designation for an administrative territorial entity
{'OR': [['Carlos Varela', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tamassari', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Carlos_Varela property:country_of_citizenship ?b } UNION { resource:Tamassari property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q965
SYSTEM
Spain, Burkina Faso
Q29 Q965
OR((Q669085,P27,c(Q15617994)), (Q15067952,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q669085
relation P27
action find
entity Q15067952
relation P17
type Q15617994
[ANSWERS] are Carlos Varela an inhabitant of or are Tamassari located in
{'OR': [['Q669085', 'P27', {'concept': 'Q15617994'}], ['Q15067952', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q669085 property:P27 ?b } UNION { resource:Q15067952 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Spain Burkina Faso
Spain and Burkina Faso are Carlos Varela an inhabitant of or are Tamassari located in
Spain Burkina Faso
action filter_type
action union
action find
entity Carlos Varela
relation country of citizenship
action find
entity Tamassari
relation country
type designation for an administrative territorial entity
{'OR': [['Carlos Varela', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tamassari', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Carlos_Varela property:country_of_citizenship ?b } UNION { resource:Tamassari property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q631418
P530
Q15617994
USER
Do Unterbreizbach have diplomatic relations with those ones ?
(Q631418,P530,Q29) (Q631418,P530,Q965)
action is_in
entity prev_answer
action find
entity Q631418
relation P530
['Q631418', 'P530', 'Q29'] ['Q631418', 'P530', 'Q965']
ASK WHERE { VALUES ( ?u ) { ( resource:Q29 ) ( resource:Q965 ) } . resource:Q631418 property:P530 ?u }
Unterbreizbach
action is_in
entity prev_answer
action find
entity Unterbreizbach
relation diplomatic relation
['Unterbreizbach', 'diplomatic relation', 'Spain'] ['Unterbreizbach', 'diplomatic relation', 'Burkina Faso']
ASK WHERE { VALUES ( ?u ) { ( resource:Spain ) ( resource:Burkina_Faso ) } . resource:Unterbreizbach property:diplomatic_relation ?u }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q631418,P530,Q29) (Q631418,P530,Q965)
action is_in
entity prev_answer
action find
entity Q631418
relation P530
[ANSWER]
['Q631418', 'P530', 'Q29'] ['Q631418', 'P530', 'Q965']
ASK WHERE { VALUES ( ?u ) { ( resource:Q29 ) ( resource:Q965 ) } . resource:Q631418 property:P530 ?u }
No
action is_in
entity prev_answer
action find
entity Unterbreizbach
relation diplomatic relation
['Unterbreizbach', 'diplomatic relation', 'Spain'] ['Unterbreizbach', 'diplomatic relation', 'Burkina Faso']
ASK WHERE { VALUES ( ?u ) { ( resource:Spain ) ( resource:Burkina_Faso ) } . resource:Unterbreizbach property:diplomatic_relation ?u }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q685
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with approximately the same number of administrative territories as Solomon Islands ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?m ) WHERE { ?o property:P530 ?i . ?o rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q685 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?g ) }
Solomon Islands
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?m ) WHERE { ?o property:diplomatic_relation ?i . ?o rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?g ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?m ) WHERE { ?o property:P530 ?i . ?o rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q685 property:P530 ?r . ?r rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?g ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?i ) AS ?m ) WHERE { ?o property:diplomatic_relation ?i . ?o rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P194
Q1752346
USER
Which assembly is the representative body for Spain ?
(Q29,P194,c(Q1752346))
action filter_type
action find
entity Q29
relation P194
type Q1752346
['Q29', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?w WHERE { resource:Q29 property:P194 ?w . ?w rdf:type ontology:Q1752346 }
Spain
action filter_type
action find
entity Spain
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?w WHERE { resource:Spain property:legislative_body ?w . ?w rdf:type ontology:assembly }
[]
assembly
Q219692
SYSTEM
Cortes Generales
Q219692
(Q29,P194,c(Q1752346))
action filter_type
action find
entity Q29
relation P194
type Q1752346
The [ANSWER] is the representative body for Spain
['Q29', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?w WHERE { resource:Q29 property:P194 ?w . ?w rdf:type ontology:Q1752346 }
Cortes Generales
The Cortes Generales is the representative body for Spain
Cortes Generales
action filter_type
action find
entity Spain
relation legislative body
type assembly
['Spain', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?w WHERE { resource:Spain property:legislative_body ?w . ?w rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P112
Q484652
USER
Which international organization was started by Spain ?
(c(Q484652),P112,Q29)
action filter_type
action find_reverse
entity Q29
relation P112
type Q484652
[{'concept': 'Q484652'}, 'P112', 'Q29']
SELECT DISTINCT ?o WHERE { ?o property:P112 resource:Q29 . ?o rdf:type ontology:Q484652 }
Spain
action filter_type
action find_reverse
entity Spain
relation founder
type international organization
[{'concept': 'international organization'}, 'founder', 'Spain']
SELECT DISTINCT ?o WHERE { ?o property:founder resource:Spain . ?o rdf:type ontology:international_organization }
[]
international organization
Q42262
SYSTEM
European Space Agency
Q42262
(c(Q484652),P112,Q29)
action filter_type
action find_reverse
entity Q29
relation P112
type Q484652
[ANSWER] was started by Spain
[{'concept': 'Q484652'}, 'P112', 'Q29']
SELECT DISTINCT ?o WHERE { ?o property:P112 resource:Q29 . ?o rdf:type ontology:Q484652 }
European Space Agency
European Space Agency was started by Spain
European Space Agency
action filter_type
action find_reverse
entity Spain
relation founder
type international organization
[{'concept': 'international organization'}, 'founder', 'Spain']
SELECT DISTINCT ?o WHERE { ?o property:founder resource:Spain . ?o rdf:type ontology:international_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P921
Q223393
USER
Which literary genres were primarily based on Spain ?
(c(Q223393),P921,Q29)
action filter_type
action find_reverse
entity Q29
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q29']
SELECT DISTINCT ?m WHERE { ?m property:P921 resource:Q29 . ?m rdf:type ontology:Q223393 }
Spain
action filter_type
action find_reverse
entity Spain
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'Spain']
SELECT DISTINCT ?m WHERE { ?m property:main_subject resource:Spain . ?m rdf:type ontology:literary_genre }
[]
literary genre
Q20982891 Q11681095
SYSTEM
Hades, Diccionario Biográfico del Socialismo Español
Q20982891 Q11681095
(c(Q223393),P921,Q29)
action filter_type
action find_reverse
entity Q29
relation P921
type Q223393
[ANSWERS] were primarily based on Spain
[{'concept': 'Q223393'}, 'P921', 'Q29']
SELECT DISTINCT ?m WHERE { ?m property:P921 resource:Q29 . ?m rdf:type ontology:Q223393 }
Hades Diccionario Biográfico del Socialismo Español
Hades and Diccionario Biográfico del Socialismo Español were primarily based on Spain
Hades Diccionario Biográfico del Socialismo Español
action filter_type
action find_reverse
entity Spain
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'Spain']
SELECT DISTINCT ?m WHERE { ?m property:main_subject resource:Spain . ?m rdf:type ontology:literary_genre }
[]
Clarification
Simple Question|Single Entity|Indirect
Q11681095
P123
Q163740
USER
Which nonprofit organization published that literary genre ?
(Q11681095,P123,c(Q163740))
action filter_type
action find
entity Q11681095
relation P123
type Q163740
['Q11681095', 'P123', {'concept': 'Q163740'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q163740 . resource:Q11681095 property:P123 ?o }
Diccionario Biográfico del Socialismo Español
action filter_type
action find
entity Diccionario Biográfico del Socialismo Español
relation publisher
type nonprofit organization
['Diccionario Biográfico del Socialismo Español', 'publisher', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:nonprofit_organization . resource:Diccionario_Biográfico_del_Socialismo_Español property:publisher ?o }
[]
nonprofit organization
Clarification for simple ques.
Q11681095
SYSTEM
Did you mean Diccionario Biográfico del Socialismo Español ?
Q20982891 Q11681095
(Q20982891,P123,c(Q163740)) (Q11681095,P123,c(Q163740))
[ANSWER]
['Q20982891', 'P123', {'concept': 'Q163740'}] ['Q11681095', 'P123', {'concept': 'Q163740'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q163740 . resource:Q11681095 property:P123 ?o }
Hades Diccionario Biográfico del Socialismo Español
Did you mean Diccionario Biográfico del Socialismo Español ?
Diccionario Biográfico del Socialismo Español
['Hades', 'publisher', {'concept': 'nonprofit organization'}] ['Diccionario Biográfico del Socialismo Español', 'publisher', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:nonprofit_organization . resource:Diccionario_Biográfico_del_Socialismo_Español property:publisher ?o }
[]
Simple Question (Coreferenced)
USER
Yes
(Q11681095,P123,c(Q163740))
['Q11681095', 'P123', {'concept': 'Q163740'}]
['Diccionario Biográfico del Socialismo Español', 'publisher', {'concept': 'nonprofit organization'}]
[]
Q8963086
SYSTEM
Fundación Pablo Iglesias
Q8963086
(Q11681095,P123,c(Q163740))
action filter_type
action find
entity Q11681095
relation P123
type Q163740
[ANSWER] published that literary genre
['Q11681095', 'P123', {'concept': 'Q163740'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q163740 . resource:Q11681095 property:P123 ?o }
Fundación Pablo Iglesias
Fundación Pablo Iglesias published that literary genre
Fundación Pablo Iglesias
action filter_type
action find
entity Diccionario Biográfico del Socialismo Español
relation publisher
type nonprofit organization
['Diccionario Biográfico del Socialismo Español', 'publisher', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:nonprofit_organization . resource:Diccionario_Biográfico_del_Socialismo_Español property:publisher ?o }
[]