Simple Question (Direct)
Simple Question
Q5235879
P21
Q290
USER
What is the sex of David Kašnik ?
(Q5235879,P21,c(Q290))
action filter_type
action find
entity Q5235879
relation P21
type Q290
['Q5235879', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q5235879 property:P21 ?b . ?b rdf:type ontology:Q290 }
David Kašnik
action filter_type
action find
entity David Kašnik
relation gender
type sex
['David Kašnik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:David_Kašnik property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5235879,P21,c(Q290))
action filter_type
action find
entity Q5235879
relation P21
type Q290
The sex of David Kašnik is the [ANSWER]
['Q5235879', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q5235879 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of David Kašnik is the male
male
action filter_type
action find
entity David Kašnik
relation gender
type sex
['David Kašnik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:David_Kašnik property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5235879
P106
Q12737077
USER
What is the job of David Kašnik ?
(Q5235879,P106,c(Q12737077))
action filter_type
action find
entity Q5235879
relation P106
type Q12737077
['Q5235879', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5235879 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
David Kašnik
action filter_type
action find
entity David Kašnik
relation occupation
type occupation
['David Kašnik', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:David_Kašnik property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5235879,P106,c(Q12737077))
action filter_type
action find
entity Q5235879
relation P106
type Q12737077
The job of David Kašnik is an [ANSWER]
['Q5235879', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5235879 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
association football player
The job of David Kašnik is an association football player
association football player
action filter_type
action find
entity David Kašnik
relation occupation
type occupation
['David Kašnik', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:David_Kašnik property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q762058
Q12737077
USER
And also tell me about Paride Grillo?
(Q762058,P106,c(Q12737077))
action filter_type
action find
entity Q762058
relation P106
type Q12737077
['Q762058', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q762058 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Paride Grillo
action filter_type
action find
entity Paride Grillo
relation occupation
type occupation
['Paride Grillo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Paride_Grillo property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q2309784
SYSTEM
sport cyclist
Q2309784
(Q762058,P106,c(Q12737077))
action filter_type
action find
entity Q762058
relation P106
type Q12737077
[ANSWER]
['Q762058', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q762058 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
sport cyclist
sport cyclist
action filter_type
action find
entity Paride Grillo
relation occupation
type occupation
['Paride Grillo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Paride_Grillo property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2309784 Q16209980
P106
Q502895
USER
Does Maree Bowden have a job as that occupation ?
(Q16209980,P106,Q2309784)
action is_in
entity Q16209980
action find
entity Q2309784
relation P106
['Q16209980', 'P106', 'Q2309784']
ASK WHERE { resource:Q2309784 property:P106 resource:Q16209980 }
sport cyclist Maree Bowden
action is_in
entity Maree Bowden
action find
entity sport cyclist
relation occupation
['Maree Bowden', 'occupation', 'sport cyclist']
ASK WHERE { resource:sport_cyclist property:occupation resource:Maree_Bowden }
[]
common name
SYSTEM
NO
(Q16209980,P106,Q2309784)
action is_in
entity Q16209980
action find
entity Q2309784
relation P106
[ANSWER]
['Q16209980', 'P106', 'Q2309784']
ASK WHERE { resource:Q2309784 property:P106 resource:Q16209980 }
No
action is_in
entity Maree Bowden
action find
entity sport cyclist
relation occupation
['Maree Bowden', 'occupation', 'sport cyclist']
ASK WHERE { resource:sport_cyclist property:occupation resource:Maree_Bowden }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1810596 Q2309784
P425 P641
Q31629
USER
What have sport cyclist as thier associated field of occupation and did Vuelta Ciclista a León participate in ?
AND((Q2309784,P425,c(Q31629)), (Q1810596,P641,c(Q31629)))
action filter_type
action intersection
action find
entity Q2309784
relation P425
action find
entity Q1810596
relation P641
type Q31629
{'AND': [['Q2309784', 'P425', {'concept': 'Q31629'}], ['Q1810596', 'P641', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?d WHERE { resource:Q2309784 property:P425 ?d . resource:Q1810596 property:P641 ?d . ?d rdf:type ontology:Q31629 }
Vuelta Ciclista a León sport cyclist
action filter_type
action intersection
action find
entity sport cyclist
relation field of this occupation
action find
entity Vuelta Ciclista a León
relation sport
type type of sport
{'AND': [['sport cyclist', 'field of this occupation', {'concept': 'type of sport'}], ['Vuelta Ciclista a León', 'sport', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?d WHERE { resource:sport_cyclist property:field_of_this_occupation ?d . resource:Vuelta_Ciclista_a_León property:sport ?d . ?d rdf:type ontology:type_of_sport }
[]
type of sport
Q3609
SYSTEM
road bicycle racing
Q3609
AND((Q2309784,P425,c(Q31629)), (Q1810596,P641,c(Q31629)))
action filter_type
action intersection
action find
entity Q2309784
relation P425
action find
entity Q1810596
relation P641
type Q31629
The [ANSWER] have sport cyclist as thier associated field of occupation and did Vuelta Ciclista a León participate in
{'AND': [['Q2309784', 'P425', {'concept': 'Q31629'}], ['Q1810596', 'P641', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?d WHERE { resource:Q2309784 property:P425 ?d . resource:Q1810596 property:P641 ?d . ?d rdf:type ontology:Q31629 }
road bicycle racing
The road bicycle racing have sport cyclist as thier associated field of occupation and did Vuelta Ciclista a León participate in
road bicycle racing
action filter_type
action intersection
action find
entity sport cyclist
relation field of this occupation
action find
entity Vuelta Ciclista a León
relation sport
type type of sport
{'AND': [['sport cyclist', 'field of this occupation', {'concept': 'type of sport'}], ['Vuelta Ciclista a León', 'sport', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?d WHERE { resource:sport_cyclist property:field_of_this_occupation ?d . resource:Vuelta_Ciclista_a_León property:sport ?d . ?d rdf:type ontology:type_of_sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6249665 Q5235879
P19
Q56061
USER
Which administrative territories were David Kašnik or John Moyer born ?
OR((Q5235879,P19,c(Q56061)), (Q6249665,P19,c(Q56061)))
action filter_type
action union
action find
entity Q5235879
relation P19
action find
entity Q6249665
relation P19
type Q56061
{'OR': [['Q5235879', 'P19', {'concept': 'Q56061'}], ['Q6249665', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5235879 property:P19 ?t } UNION { resource:Q6249665 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
John Moyer David Kašnik
action filter_type
action union
action find
entity David Kašnik
relation place of birth
action find
entity John Moyer
relation place of birth
type administrative territorial entity
{'OR': [['David Kašnik', 'place of birth', {'concept': 'administrative territorial entity'}], ['John Moyer', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:David_Kašnik property:place_of_birth ?t } UNION { resource:John_Moyer property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q437 Q138367
SYSTEM
Ljubljana, Camden
Q437 Q138367
OR((Q5235879,P19,c(Q56061)), (Q6249665,P19,c(Q56061)))
action filter_type
action union
action find
entity Q5235879
relation P19
action find
entity Q6249665
relation P19
type Q56061
[ANSWERS] were David Kašnik or John Moyer born
{'OR': [['Q5235879', 'P19', {'concept': 'Q56061'}], ['Q6249665', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5235879 property:P19 ?t } UNION { resource:Q6249665 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Ljubljana Camden
Ljubljana and Camden were David Kašnik or John Moyer born
Ljubljana Camden
action filter_type
action union
action find
entity David Kašnik
relation place of birth
action find
entity John Moyer
relation place of birth
type administrative territorial entity
{'OR': [['David Kašnik', 'place of birth', {'concept': 'administrative territorial entity'}], ['John Moyer', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:David_Kašnik property:place_of_birth ?t } UNION { resource:John_Moyer property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q178706 Q1752346 Q12737077
USER
Which occupations did exactly 1 institutions and assemblies appoint ?
(c(Q12737077),P748,c(Q178706)|c(Q1752346))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?u ) WHERE { { ?c property:P748 ?y . ?c rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q178706 } UNION { ?c property:P748 ?y . ?y rdf:type ontology:Q1752346 . ?c rdf:type ontology:Q12737077 } } GROUP BY ?c } . FILTER ( ?u = 1 ) }
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?u ) WHERE { { ?c property:appointed_by ?y . ?c rdf:type ontology:occupation . ?y rdf:type ontology:institution } UNION { ?c property:appointed_by ?y . ?y rdf:type ontology:assembly . ?c rdf:type ontology:occupation } } GROUP BY ?c } . FILTER ( ?u = 1 ) }
[]
institution assembly occupation
Q81066 Q842386 Q1370482
SYSTEM
United Nations Secretary-General, Prime Minister of Russia, President of Cuba
Q740126 Q15305714 Q842386 Q19056310 Q890030 Q1161813 Q796593 Q7574264 Q8882 Q3409203 Q327948 Q1370482 Q634291 Q735587 Q81066 Q628102
(c(Q12737077),P748,c(Q178706)|c(Q1752346))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
Exactly 1 institutions and assemblies appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?u ) WHERE { { ?c property:P748 ?y . ?c rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q178706 } UNION { ?c property:P748 ?y . ?y rdf:type ontology:Q1752346 . ?c rdf:type ontology:Q12737077 } } GROUP BY ?c } . FILTER ( ?u = 1 ) }
President of the European Parliament Prime Minister of Libya Prime Minister of Russia President of Botswana State President of South Africa President of the United Nations General Assembly President of Malta Speaker of the Hellenic Parliament President of the European Commission President of Greece President of Israel President of Cuba High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General President of Nauru
Exactly 1 institutions and assemblies appointed by United Nations Secretary-General, Prime Minister of Russia and President of Cuba
United Nations Secretary-General Prime Minister of Russia President of Cuba
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?u ) WHERE { { ?c property:appointed_by ?y . ?c rdf:type ontology:occupation . ?y rdf:type ontology:institution } UNION { ?c property:appointed_by ?y . ?y rdf:type ontology:assembly . ?c rdf:type ontology:occupation } } GROUP BY ?c } . FILTER ( ?u = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1370482
P39
Q502895
USER
Who held the position of that occupation ?
(c(Q502895),P39,Q1370482)
action filter_type
action find_reverse
entity Q1370482
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1370482']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q1370482 . ?c rdf:type ontology:Q502895 }
President of Cuba
action filter_type
action find_reverse
entity President of Cuba
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of Cuba']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:President_of_Cuba . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q842386
SYSTEM
Did you mean Prime Minister of Russia ?
Q81066 Q842386 Q1370482
(c(Q502895),P39,Q81066) (c(Q502895),P39,Q842386) (c(Q502895),P39,Q1370482)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q81066'] [{'concept': 'Q502895'}, 'P39', 'Q842386'] [{'concept': 'Q502895'}, 'P39', 'Q1370482']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q1370482 . ?c rdf:type ontology:Q502895 }
United Nations Secretary-General Prime Minister of Russia President of Cuba
Did you mean Prime Minister of Russia ?
Prime Minister of Russia
[{'concept': 'common name'}, 'position held', 'United Nations Secretary-General'] [{'concept': 'common name'}, 'position held', 'Prime Minister of Russia'] [{'concept': 'common name'}, 'position held', 'President of Cuba']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:President_of_Cuba . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant President of Cuba. Could you tell me the answer for that?
(c(Q502895),P39,Q1370482)
Q1370482
[{'concept': 'Q502895'}, 'P39', 'Q1370482']
[{'concept': 'common name'}, 'position held', 'President of Cuba']
[]
Q11256 Q103285 Q46809
SYSTEM
Fidel Castro, José Martín, Raúl Castro
Q11256 Q11270 Q880225 Q103285 Q455365 Q365703 Q878826 Q48690 Q878835 Q554259 Q318294 Q655779 Q880250 Q322173 Q46809 Q449356
(c(Q502895),P39,Q1370482)
action filter_type
action find_reverse
entity Q1370482
relation P39
type Q502895
[ANSWERS] held the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q1370482']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q1370482 . ?c rdf:type ontology:Q502895 }
Fidel Castro Fulgencio Batista Carlos Hevia José Martín Ramón Grau Gerardo Machado Mario García Menocal Osvaldo Dorticós Torrado Miguel Mariano Gómez José Miguel Gómez Federico Laredo Brú Carlos Prío Socarrás Alfredo Zayas y Alfonso Tomás Estrada Palma Raúl Castro Manuel Urrutia Lleó
Fidel Castro, José Martín and Raúl Castro held the position of that occupation
Fidel Castro José Martín Raúl Castro
action filter_type
action find_reverse
entity President of Cuba
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of Cuba']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:President_of_Cuba . ?c rdf:type ontology:common_name }
[]