Simple Question (Direct)
Simple Question
Q4837685
P641
Q349
USER
Which sport did Babek Nabiyev participate in ?
(Q4837685,P641,c(Q349))
action filter_type
action find
entity Q4837685
relation P641
type Q349
['Q4837685', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q4837685 property:P641 ?w . ?w rdf:type ontology:Q349 }
Babek Nabiyev
action filter_type
action find
entity Babek Nabiyev
relation sport
type sport
['Babek Nabiyev', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:Babek_Nabiyev property:sport ?w . ?w rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4837685,P641,c(Q349))
action filter_type
action find
entity Q4837685
relation P641
type Q349
Babek Nabiyev participated in [ANSWER]
['Q4837685', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q4837685 property:P641 ?w . ?w rdf:type ontology:Q349 }
association football
Babek Nabiyev participated in association football
association football
action filter_type
action find
entity Babek Nabiyev
relation sport
type sport
['Babek Nabiyev', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:Babek_Nabiyev property:sport ?w . ?w rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4837685
P21
Q290
USER
Which sex does Babek Nabiyev belong to ?
(Q4837685,P21,c(Q290))
action filter_type
action find
entity Q4837685
relation P21
type Q290
['Q4837685', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q4837685 property:P21 ?z . ?z rdf:type ontology:Q290 }
Babek Nabiyev
action filter_type
action find
entity Babek Nabiyev
relation gender
type sex
['Babek Nabiyev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Babek_Nabiyev property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4837685,P21,c(Q290))
action filter_type
action find
entity Q4837685
relation P21
type Q290
Babek Nabiyev belongs to [ANSWER]
['Q4837685', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q4837685 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Babek Nabiyev belongs to male
male
action filter_type
action find
entity Babek Nabiyev
relation gender
type sex
['Babek Nabiyev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Babek_Nabiyev property:gender ?z . ?z rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q18674391
P21
Q502895
USER
Does Richard Fry have the gender as that sex ?
(Q18674391,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q18674391
relation P21
['Q18674391', 'P21', 'Q6581097']
ASK WHERE { resource:Q18674391 property:P21 resource:Q6581097 }
male Richard Fry
action is_in
entity male
action find
entity Richard Fry
relation gender
['Richard Fry', 'gender', 'male']
ASK WHERE { resource:Richard_Fry property:gender resource:male }
[]
common name
SYSTEM
YES
(Q18674391,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q18674391
relation P21
[ANSWER]
['Q18674391', 'P21', 'Q6581097']
ASK WHERE { resource:Q18674391 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Richard Fry
relation gender
['Richard Fry', 'gender', 'male']
ASK WHERE { resource:Richard_Fry property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4837685 Q26693825 Q937857
P106
Q12737077
USER
Does Babek Nabiyev have career as mayor of Palomeque and association football player ?
(Q4837685,P106,Q26693825) (Q4837685,P106,Q937857)
action is_in
entity Q4837685
action intersection
action find_reverse
entity Q26693825
relation P106
action find_reverse
entity Q937857
relation P106
['Q4837685', 'P106', 'Q26693825'] ['Q4837685', 'P106', 'Q937857']
ASK WHERE { resource:Q4837685 property:P106 resource:Q26693825 . resource:Q4837685 property:P106 resource:Q937857 }
Babek Nabiyev mayor of Palomeque association football player
action is_in
entity Babek Nabiyev
action intersection
action find_reverse
entity mayor of Palomeque
relation occupation
action find_reverse
entity association football player
relation occupation
['Babek Nabiyev', 'occupation', 'mayor of Palomeque'] ['Babek Nabiyev', 'occupation', 'association football player']
ASK WHERE { resource:Babek_Nabiyev property:occupation resource:mayor_of_Palomeque . resource:Babek_Nabiyev property:occupation resource:association_football_player }
[]
occupation
SYSTEM
NO and YES respectively
(Q4837685,P106,Q26693825) (Q4837685,P106,Q937857)
action is_in
entity Q4837685
action intersection
action find_reverse
entity Q26693825
relation P106
action find_reverse
entity Q937857
relation P106
[ANSWER]
['Q4837685', 'P106', 'Q26693825'] ['Q4837685', 'P106', 'Q937857']
ASK WHERE { resource:Q4837685 property:P106 resource:Q26693825 . resource:Q4837685 property:P106 resource:Q937857 }
NO and YES respectively
action is_in
entity Babek Nabiyev
action intersection
action find_reverse
entity mayor of Palomeque
relation occupation
action find_reverse
entity association football player
relation occupation
['Babek Nabiyev', 'occupation', 'mayor of Palomeque'] ['Babek Nabiyev', 'occupation', 'association football player']
ASK WHERE { resource:Babek_Nabiyev property:occupation resource:mayor_of_Palomeque . resource:Babek_Nabiyev property:occupation resource:association_football_player }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 2693 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2693
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?f = 2693 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2693
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?f = 2693 ) }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2693
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?u } . FILTER ( ?f = 2693 ) }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2693
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?u } . FILTER ( ?f = 2693 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q644178 Q4837685
P106
Q12737077
USER
Which occupations are the job of Babek Nabiyev or Karyn White ?
OR((Q4837685,P106,c(Q12737077)), (Q644178,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4837685
relation P106
action find
entity Q644178
relation P106
type Q12737077
{'OR': [['Q4837685', 'P106', {'concept': 'Q12737077'}], ['Q644178', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q644178 property:P106 ?h } UNION { resource:Q4837685 property:P106 ?h } } . ?h rdf:type ontology:Q12737077 }
Karyn White Babek Nabiyev
action filter_type
action union
action find
entity Babek Nabiyev
relation occupation
action find
entity Karyn White
relation occupation
type occupation
{'OR': [['Babek Nabiyev', 'occupation', {'concept': 'occupation'}], ['Karyn White', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Karyn_White property:occupation ?h } UNION { resource:Babek_Nabiyev property:occupation ?h } } . ?h rdf:type ontology:occupation }
[]
occupation
Q639669 Q937857 Q5322166 Q177220
SYSTEM
musician, association football player, designer, singer
Q639669 Q937857 Q5322166 Q177220
OR((Q4837685,P106,c(Q12737077)), (Q644178,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4837685
relation P106
action find
entity Q644178
relation P106
type Q12737077
Player [ANSWERS] are the job of Babek Nabiyev or Karyn White
{'OR': [['Q4837685', 'P106', {'concept': 'Q12737077'}], ['Q644178', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q644178 property:P106 ?h } UNION { resource:Q4837685 property:P106 ?h } } . ?h rdf:type ontology:Q12737077 }
musician association football player designer singer
Player musician, association football player, designer and singer are the job of Babek Nabiyev or Karyn White
musician association football player designer singer
action filter_type
action union
action find
entity Babek Nabiyev
relation occupation
action find
entity Karyn White
relation occupation
type occupation
{'OR': [['Babek Nabiyev', 'occupation', {'concept': 'occupation'}], ['Karyn White', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Karyn_White property:occupation ?h } UNION { resource:Babek_Nabiyev property:occupation ?h } } . ?h rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5322166
P425
Q9332
USER
Who is associated with the field of occupation that one ?
(Q5322166,P425,c(Q9332))
action filter_type
action find
entity Q5322166
relation P425
type Q9332
['Q5322166', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q9332 . resource:Q5322166 property:P425 ?u }
designer
action filter_type
action find
entity designer
relation field of this occupation
type behavior
['designer', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:behavior . resource:designer property:field_of_this_occupation ?u }
[]
behavior
Clarification for simple ques.
Q639669
SYSTEM
Did you mean musician ?
Q639669 Q937857 Q5322166 Q177220
(Q639669,P425,c(Q9332)) (Q937857,P425,c(Q9332)) (Q5322166,P425,c(Q9332)) (Q177220,P425,c(Q9332))
[ANSWER]
['Q639669', 'P425', {'concept': 'Q9332'}] ['Q937857', 'P425', {'concept': 'Q9332'}] ['Q5322166', 'P425', {'concept': 'Q9332'}] ['Q177220', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q9332 . resource:Q5322166 property:P425 ?u }
musician association football player designer singer
Did you mean musician ?
musician
['musician', 'field of this occupation', {'concept': 'behavior'}] ['association football player', 'field of this occupation', {'concept': 'behavior'}] ['designer', 'field of this occupation', {'concept': 'behavior'}] ['singer', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:behavior . resource:designer property:field_of_this_occupation ?u }
[]
Simple Question (Coreferenced)
USER
No, I meant designer. Could you tell me the answer for that?
(Q5322166,P425,c(Q9332))
Q5322166
['Q5322166', 'P425', {'concept': 'Q9332'}]
['designer', 'field of this occupation', {'concept': 'behavior'}]
[]
Q82604
SYSTEM
design
Q82604
(Q5322166,P425,c(Q9332))
action filter_type
action find
entity Q5322166
relation P425
type Q9332
A [ANSWER] is associated with the field of occupation that one
['Q5322166', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q9332 . resource:Q5322166 property:P425 ?u }
design
A design is associated with the field of occupation that one
design
action filter_type
action find
entity designer
relation field of this occupation
type behavior
['designer', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:behavior . resource:designer property:field_of_this_occupation ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3369988 Q4837685
P106
Q12737077
USER
Which occupations are the professions of Babek Nabiyev or Patrik Forsbacka ?
OR((Q4837685,P106,c(Q12737077)), (Q3369988,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4837685
relation P106
action find
entity Q3369988
relation P106
type Q12737077
{'OR': [['Q4837685', 'P106', {'concept': 'Q12737077'}], ['Q3369988', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Q4837685 ) ( resource:Q3369988 ) } . ?h property:P106 ?j } . ?j rdf:type ontology:Q12737077 }
Patrik Forsbacka Babek Nabiyev
action filter_type
action union
action find
entity Babek Nabiyev
relation occupation
action find
entity Patrik Forsbacka
relation occupation
type occupation
{'OR': [['Babek Nabiyev', 'occupation', {'concept': 'occupation'}], ['Patrik Forsbacka', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Babek_Nabiyev ) ( resource:Patrik_Forsbacka ) } . ?h property:occupation ?j } . ?j rdf:type ontology:occupation }
[]
occupation
Q11774891 Q937857
SYSTEM
ice hockey player, association football player
Q11774891 Q937857
OR((Q4837685,P106,c(Q12737077)), (Q3369988,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4837685
relation P106
action find
entity Q3369988
relation P106
type Q12737077
[ANSWERS] are the professions of Babek Nabiyev or Patrik Forsbacka
{'OR': [['Q4837685', 'P106', {'concept': 'Q12737077'}], ['Q3369988', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Q4837685 ) ( resource:Q3369988 ) } . ?h property:P106 ?j } . ?j rdf:type ontology:Q12737077 }
ice hockey player association football player
Ice hockey player and association football player are the professions of Babek Nabiyev or Patrik Forsbacka
ice hockey player association football player
action filter_type
action union
action find
entity Babek Nabiyev
relation occupation
action find
entity Patrik Forsbacka
relation occupation
type occupation
{'OR': [['Babek Nabiyev', 'occupation', {'concept': 'occupation'}], ['Patrik Forsbacka', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Babek_Nabiyev ) ( resource:Patrik_Forsbacka ) } . ?h property:occupation ?j } . ?j rdf:type ontology:occupation }
[]