Simple Question (Direct)
Simple Question
Q16221097
P136
Q151885
USER
Which concepts are the genre for Olamide ?
(Q16221097,P136,c(Q151885))
action filter_type
action find
entity Q16221097
relation P136
type Q151885
['Q16221097', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q151885 . resource:Q16221097 property:P136 ?c }
Olamide
action filter_type
action find
entity Olamide
relation genre
type concept
['Olamide', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:concept . resource:Olamide property:genre ?c }
[]
concept
Q37073 Q11401 Q850412
SYSTEM
pop music, hip hop, contemporary R&B
Q37073 Q11401 Q850412
(Q16221097,P136,c(Q151885))
action filter_type
action find
entity Q16221097
relation P136
type Q151885
[ANSWERS] are the genre for Olamide
['Q16221097', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q151885 . resource:Q16221097 property:P136 ?c }
pop music hip hop contemporary R&B
Pop music, hip hop and contemporary R&B are the genre for Olamide
pop music hip hop contemporary R&B
action filter_type
action find
entity Olamide
relation genre
type concept
['Olamide', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:concept . resource:Olamide property:genre ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16221097
P106
Q12737077
USER
Which occupation has Olamide as his/her 's career ?
(Q16221097,P106,c(Q12737077))
action filter_type
action find
entity Q16221097
relation P106
type Q12737077
['Q16221097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q16221097 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Olamide
action filter_type
action find
entity Olamide
relation occupation
type occupation
['Olamide', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Olamide property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q177220
SYSTEM
singer
Q177220
(Q16221097,P106,c(Q12737077))
action filter_type
action find
entity Q16221097
relation P106
type Q12737077
The [ANSWER] has Olamide as his/her 's career
['Q16221097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q16221097 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
singer
The singer has Olamide as his/her 's career
singer
action filter_type
action find
entity Olamide
relation occupation
type occupation
['Olamide', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Olamide property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1442983
Q12737077
USER
And how about Frank Borsch?
(Q1442983,P106,c(Q12737077))
action filter_type
action find
entity Q1442983
relation P106
type Q12737077
['Q1442983', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1442983 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Frank Borsch
action filter_type
action find
entity Frank Borsch
relation occupation
type occupation
['Frank Borsch', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Frank_Borsch property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q36180 Q18844224
SYSTEM
writer, science fiction writer
Q36180 Q18844224
(Q1442983,P106,c(Q12737077))
action filter_type
action find
entity Q1442983
relation P106
type Q12737077
[ANSWERS]
['Q1442983', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1442983 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
writer science fiction writer
writer science fiction writer
action filter_type
action find
entity Frank Borsch
relation occupation
type occupation
['Frank Borsch', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Frank_Borsch property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7340163
P106
Q502895
USER
Do Rob Grant have a job as those occupations ?
(Q7340163,P106,Q36180) (Q7340163,P106,Q18844224)
action is_in
entity prev_answer
action find
entity Q7340163
relation P106
['Q7340163', 'P106', 'Q36180'] ['Q7340163', 'P106', 'Q18844224']
ASK WHERE { resource:Q7340163 property:P106 ?i . VALUES ( ?i ) { ( resource:Q36180 ) ( resource:Q18844224 ) } }
Rob Grant
action is_in
entity prev_answer
action find
entity Rob Grant
relation occupation
['Rob Grant', 'occupation', 'writer'] ['Rob Grant', 'occupation', 'science fiction writer']
ASK WHERE { resource:Rob_Grant property:occupation ?i . VALUES ( ?i ) { ( resource:writer ) ( resource:science_fiction_writer ) } }
[]
common name
SYSTEM
YES
(Q7340163,P106,Q36180) (Q7340163,P106,Q18844224)
action is_in
entity prev_answer
action find
entity Q7340163
relation P106
[ANSWER]
['Q7340163', 'P106', 'Q36180'] ['Q7340163', 'P106', 'Q18844224']
ASK WHERE { resource:Q7340163 property:P106 ?i . VALUES ( ?i ) { ( resource:Q36180 ) ( resource:Q18844224 ) } }
Yes
action is_in
entity prev_answer
action find
entity Rob Grant
relation occupation
['Rob Grant', 'occupation', 'writer'] ['Rob Grant', 'occupation', 'science fiction writer']
ASK WHERE { resource:Rob_Grant property:occupation ?i . VALUES ( ?i ) { ( resource:writer ) ( resource:science_fiction_writer ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q82955 Q18844224
P106
Q502895
USER
Which people have career as science fiction writer and politician ?
AND((c(Q502895),P106,Q18844224), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q18844224
relation P106
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q18844224'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?a WHERE { ?a property:P106 resource:Q18844224 . ?a property:P106 resource:Q82955 . ?a rdf:type ontology:Q502895 }
politician science fiction writer
action filter_type
action intersection
action find_reverse
entity science fiction writer
relation occupation
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'science fiction writer'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?a WHERE { ?a property:occupation resource:science_fiction_writer . ?a property:occupation resource:politician . ?a rdf:type ontology:common_name }
[]
common name
Q77226 Q337375 Q154756 Q4116051 Q159960 Q11865427 Q135645 Q1042124 Q1246391 Q1363572
SYSTEM
Some of them are Bernhard Kellermann, Douglas Hurd, Italo Calvino, Taibah Al-Ibrahim, Alexej Pludek, J. Pekka Mäkelä, Walther Rathenau, Carlo Dossi, Paolo Volponi, Julius Vogel
Q6282214 Q9050194 Q11865427 Q1042124 Q458658 Q2607883 Q7436276 Q270648 Q484292 Q154756 Q3889308 Q5976265 Q1363572 Q942264 Q225592 Q313489 Q918937 Q135645 Q369612 Q5622055 Q709670 Q159960 Q77226 Q1797785 Q318462 Q275053 Q12025686 Q4116051 Q337375 Q1122051 Q35610 Q3573652 Q1118848 Q5545264 Q1246391 Q17382130 Q1508382 Q1280614 Q153670 Q1125568 Q333004 Q4521270
AND((c(Q502895),P106,Q18844224), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q18844224
relation P106
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWERS] have career as science fiction writer and politician
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q18844224'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?a WHERE { ?a property:P106 resource:Q18844224 . ?a property:P106 resource:Q82955 . ?a rdf:type ontology:Q502895 }
Joseph Compton-Rickett Nil Maria Fabra i Deas J. Pekka Mäkelä Carlo Dossi Edward Plunkett, 18th Baron of Dunsany Damir Bajs Scott E. Green P. D. James Chinghiz Aitmatov Italo Calvino Yuriy Shcherbak Roger Sherman Hoar Julius Vogel Segismundo Bermejo Ludovico Zuccolo Jeffrey Archer Ignatius L. Donnelly Walther Rathenau Dobrica Ćosić Guy Anthony De Marco Louis-Sébastien Mercier Alexej Pludek Bernhard Kellermann L. Neil Smith Edward Bulwer-Lytton Émile Driant Jiří Švejda Taibah Al-Ibrahim Douglas Hurd Compton Mackenzie Arthur Conan Doyle Yves Fremion Paschal Grousset George Tomkyns Chesney Paolo Volponi Konrad Lehtimäki George Tucker Milan Šufflay Primo Levi Ernesto Capocci Belmonte John Buchan, 1st Baron Tweedsmuir Georgy Shakhnazarov
Bernhard Kellermann, Douglas Hurd, Italo Calvino, Taibah Al-Ibrahim, Alexej Pludek, J. Pekka Mäkelä, Walther Rathenau, Carlo Dossi, Paolo Volponi and Julius Vogel have career as science fiction writer and politician
Bernhard Kellermann Douglas Hurd Italo Calvino Taibah Al-Ibrahim Alexej Pludek J. Pekka Mäkelä Walther Rathenau Carlo Dossi Paolo Volponi Julius Vogel
action filter_type
action intersection
action find_reverse
entity science fiction writer
relation occupation
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'science fiction writer'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?a WHERE { ?a property:occupation resource:science_fiction_writer . ?a property:occupation resource:politician . ?a rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q539337
P1029
Q502895 Q20027951 Q2235308
USER
How many people were crew members of more number of aircraft power classes and ship types than Thomas Akers ?
(c(Q20027951)|c(Q2235308),P1029,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q539337
relation P1029
type Q20027951
type Q2235308
[[{'concept': 'Q20027951'}, {'concept': 'Q2235308'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?x WHERE { VALUES ( ?g ) { ( ontology:Q20027951 ) ( ontology:Q2235308 ) } . ?u rdf:type ?g } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P1029 resource:Q539337 . { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:Q20027951 ) ( ontology:Q2235308 ) } } } } . FILTER ( ?a > ?j ) }
Thomas Akers
action count
action greater
action union
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
action count
action filter_multi_types
action find_reverse
entity Thomas Akers
relation crew member
type aircraft power class
type ship type
[[{'concept': 'aircraft power class'}, {'concept': 'ship type'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?x WHERE { VALUES ( ?g ) { ( ontology:aircraft_power_class ) ( ontology:ship_type ) } . ?u rdf:type ?g } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:crew_member resource:Thomas_Akers . { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:aircraft_power_class ) ( ontology:ship_type ) } } } } . FILTER ( ?a > ?j ) }
[]
common name aircraft power class ship type
SYSTEM
6
Q14623220 Q4103224 Q17478723 Q70468 Q334084 Q294555
(c(Q20027951)|c(Q2235308),P1029,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q539337
relation P1029
type Q20027951
type Q2235308
[ANSWER]
[[{'concept': 'Q20027951'}, {'concept': 'Q2235308'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?x WHERE { VALUES ( ?g ) { ( ontology:Q20027951 ) ( ontology:Q2235308 ) } . ?u rdf:type ?g } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P1029 resource:Q539337 . { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:Q20027951 ) ( ontology:Q2235308 ) } } } } . FILTER ( ?a > ?j ) }
Adolf Schönberg Theodore Van Kirk Hans-Kurt von Bremen Otto von Bülow Thomas Grenville Paul Tibbets
6
action count
action greater
action union
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
action count
action filter_multi_types
action find_reverse
entity Thomas Akers
relation crew member
type aircraft power class
type ship type
[[{'concept': 'aircraft power class'}, {'concept': 'ship type'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?x WHERE { VALUES ( ?g ) { ( ontology:aircraft_power_class ) ( ontology:ship_type ) } . ?u rdf:type ?g } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:crew_member resource:Thomas_Akers . { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:aircraft_power_class ) ( ontology:ship_type ) } } } } . FILTER ( ?a > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q7146575
P1029
Q502895 Q20027951 Q2235308
USER
And what about Richard Bradley?
(c(Q20027951)|c(Q2235308),P1029,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q7146575
relation P1029
type Q20027951
type Q2235308
[[{'concept': 'Q20027951'}, {'concept': 'Q2235308'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?n WHERE { ?h rdf:type ?r . VALUES ( ?r ) { ( ontology:Q20027951 ) ( ontology:Q2235308 ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:P1029 resource:Q7146575 . { { ?c rdf:type ontology:Q20027951 } UNION { ?c rdf:type ontology:Q2235308 } } } } . FILTER ( ?f > ?g ) }
Richard Bradley
action count
action greater
action union
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
action count
action filter_multi_types
action find_reverse
entity Richard Bradley
relation crew member
type aircraft power class
type ship type
[[{'concept': 'aircraft power class'}, {'concept': 'ship type'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?n WHERE { ?h rdf:type ?r . VALUES ( ?r ) { ( ontology:aircraft_power_class ) ( ontology:ship_type ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:crew_member resource:Richard_Bradley . { { ?c rdf:type ontology:aircraft_power_class } UNION { ?c rdf:type ontology:ship_type } } } } . FILTER ( ?f > ?g ) }
[]
common name aircraft power class ship type
SYSTEM
6
Q14623220 Q4103224 Q17478723 Q70468 Q334084 Q294555
(c(Q20027951)|c(Q2235308),P1029,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q7146575
relation P1029
type Q20027951
type Q2235308
[ANSWER]
[[{'concept': 'Q20027951'}, {'concept': 'Q2235308'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?n WHERE { ?h rdf:type ?r . VALUES ( ?r ) { ( ontology:Q20027951 ) ( ontology:Q2235308 ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:P1029 resource:Q7146575 . { { ?c rdf:type ontology:Q20027951 } UNION { ?c rdf:type ontology:Q2235308 } } } } . FILTER ( ?f > ?g ) }
Adolf Schönberg Theodore Van Kirk Hans-Kurt von Bremen Otto von Bülow Thomas Grenville Paul Tibbets
6
action count
action greater
action union
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
action count
action filter_multi_types
action find_reverse
entity Richard Bradley
relation crew member
type aircraft power class
type ship type
[[{'concept': 'aircraft power class'}, {'concept': 'ship type'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?n WHERE { ?h rdf:type ?r . VALUES ( ?r ) { ( ontology:aircraft_power_class ) ( ontology:ship_type ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:crew_member resource:Richard_Bradley . { { ?c rdf:type ontology:aircraft_power_class } UNION { ?c rdf:type ontology:ship_type } } } } . FILTER ( ?f > ?g ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q632761
Q502895
USER
And what about STS-83?
(Q632761,P1029,c(Q502895))
action filter_type
action find
entity Q632761
relation P1029
type Q502895
['Q632761', 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q632761 property:P1029 ?m . ?m rdf:type ontology:Q502895 }
STS-83
action filter_type
action find
entity STS-83
relation crew member
type common name
['STS-83', 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:STS-83 property:crew_member ?m . ?m rdf:type ontology:common_name }
[]
common name
Q52923 Q611704 Q1239684
SYSTEM
Janice E. Voss, James D. Halsell, Donald A. Thomas
Q704147 Q749845 Q1239684 Q1355634 Q48998 Q52923 Q611704
(Q632761,P1029,c(Q502895))
action filter_type
action find
entity Q632761
relation P1029
type Q502895
[ANSWERS]
['Q632761', 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q632761 property:P1029 ?m . ?m rdf:type ontology:Q502895 }
Michael L. Gernhardt Roger K. Crouch Donald A. Thomas Gregory T. Linteris Susan Kilrain Janice E. Voss James D. Halsell
Janice E. Voss James D. Halsell Donald A. Thomas
action filter_type
action find
entity STS-83
relation crew member
type common name
['STS-83', 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:STS-83 property:crew_member ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q154756
P7
Q502895
USER
Who has Italo Calvino as their brother ?
(Q154756,P7,c(Q502895))
action filter_type
action find
entity Q154756
relation P7
type Q502895
['Q154756', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q154756 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Italo Calvino
action filter_type
action find
entity Italo Calvino
relation brother
type common name
['Italo Calvino', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Italo_Calvino property:brother ?y . ?y rdf:type ontology:common_name }
[]
common name
Q17141899
SYSTEM
Floriano Calvino
Q17141899
(Q154756,P7,c(Q502895))
action filter_type
action find
entity Q154756
relation P7
type Q502895
[ANSWER] has Italo Calvino as their brother
['Q154756', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q154756 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Floriano Calvino
Floriano Calvino has Italo Calvino as their brother
Floriano Calvino
action filter_type
action find
entity Italo Calvino
relation brother
type common name
['Italo Calvino', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Italo_Calvino property:brother ?y . ?y rdf:type ontology:common_name }
[]