Simple Question (Direct)
Simple Question
Q199901
P1303
Q34379
USER
Which musical instrument can Doda perform with ?
(Q199901,P1303,c(Q34379))
action filter_type
action find
entity Q199901
relation P1303
type Q34379
['Q199901', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { resource:Q199901 property:P1303 ?d . ?d rdf:type ontology:Q34379 }
Doda
action filter_type
action find
entity Doda
relation instrument
type musical instrument
['Doda', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { resource:Doda property:instrument ?d . ?d rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q199901,P1303,c(Q34379))
action filter_type
action find
entity Q199901
relation P1303
type Q34379
Doda can perform on [ANSWER]
['Q199901', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { resource:Q199901 property:P1303 ?d . ?d rdf:type ontology:Q34379 }
piano
Doda can perform on piano
piano
action filter_type
action find
entity Doda
relation instrument
type musical instrument
['Doda', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { resource:Doda property:instrument ?d . ?d rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q199901
P175
Q2031291
USER
Who delivered the performance of Doda ?
(c(Q2031291),P175,Q199901)
action filter_type
action find_reverse
entity Q199901
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q199901']
SELECT DISTINCT ?y WHERE { ?y property:P175 resource:Q199901 . ?y rdf:type ontology:Q2031291 }
Doda
action filter_type
action find_reverse
entity Doda
relation performer
type release
[{'concept': 'release'}, 'performer', 'Doda']
SELECT DISTINCT ?y WHERE { ?y property:performer resource:Doda . ?y rdf:type ontology:release }
[]
release
Q7030978 Q1208667
SYSTEM
Nie daj się, Diamond Bitch
Q7030978 Q1208667
(c(Q2031291),P175,Q199901)
action filter_type
action find_reverse
entity Q199901
relation P175
type Q2031291
[ANSWERS] delivered the performance of Doda
[{'concept': 'Q2031291'}, 'P175', 'Q199901']
SELECT DISTINCT ?y WHERE { ?y property:P175 resource:Q199901 . ?y rdf:type ontology:Q2031291 }
Nie daj się Diamond Bitch
Nie daj się and Diamond Bitch delivered the performance of Doda
Nie daj się Diamond Bitch
action filter_type
action find_reverse
entity Doda
relation performer
type release
[{'concept': 'release'}, 'performer', 'Doda']
SELECT DISTINCT ?y WHERE { ?y property:performer resource:Doda . ?y rdf:type ontology:release }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q199901
P136
Q151885
USER
What is the genre of that person ?
(Q7030978,P136,c(Q151885)) (Q1208667,P136,c(Q151885))
action filter_type
action find
entity Q199901
relation P136
type Q151885
['Q7030978', 'P136', {'concept': 'Q151885'}] ['Q1208667', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { resource:Q199901 property:P136 ?k . ?k rdf:type ontology:Q151885 }
Doda
action filter_type
action find
entity Doda
relation genre
type concept
['Nie daj się', 'genre', {'concept': 'concept'}] ['Diamond Bitch', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { resource:Doda property:genre ?k . ?k rdf:type ontology:concept }
[]
concept
Q37073
SYSTEM
pop music
Q37073
(Q7030978,P136,c(Q151885)) (Q1208667,P136,c(Q151885))
action filter_type
action find
entity Q199901
relation P136
type Q151885
The genre of that person is a [ANSWER]
['Q7030978', 'P136', {'concept': 'Q151885'}] ['Q1208667', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { resource:Q199901 property:P136 ?k . ?k rdf:type ontology:Q151885 }
pop music
The genre of that person is a pop music
pop music
action filter_type
action find
entity Doda
relation genre
type concept
['Nie daj się', 'genre', {'concept': 'concept'}] ['Diamond Bitch', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { resource:Doda property:genre ?k . ?k rdf:type ontology:concept }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q37073 Q18526815
P136
Q502895
USER
Does Charles Jerram have that concept as genre ?
(Q18526815,P136,Q37073)
action is_in
entity Q18526815
action find
entity Q37073
relation P136
['Q18526815', 'P136', 'Q37073']
ASK WHERE { resource:Q37073 property:P136 resource:Q18526815 }
pop music Charles Jerram
action is_in
entity Charles Jerram
action find
entity pop music
relation genre
['Charles Jerram', 'genre', 'pop music']
ASK WHERE { resource:pop_music property:genre resource:Charles_Jerram }
[]
common name
SYSTEM
NO
(Q18526815,P136,Q37073)
action is_in
entity Q18526815
action find
entity Q37073
relation P136
[ANSWER]
['Q18526815', 'P136', 'Q37073']
ASK WHERE { resource:Q37073 property:P136 resource:Q18526815 }
No
action is_in
entity Charles Jerram
action find
entity pop music
relation genre
['Charles Jerram', 'genre', 'pop music']
ASK WHERE { resource:pop_music property:genre resource:Charles_Jerram }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q37073 Q235065
P136
Q502895
USER
How many people have pop music and Broadway theatre as genre ?
(c(Q502895),P136,Q37073) (c(Q502895),P136,Q235065)
action count
action intersection
action filter_type
action find_reverse
entity Q37073
relation P136
type Q502895
action filter_type
action find_reverse
entity Q235065
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q37073'] [{'concept': 'Q502895'}, 'P136', 'Q235065']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P136 resource:Q37073 . ?g rdf:type ontology:Q502895 . ?g property:P136 resource:Q235065 . ?g rdf:type ontology:Q502895 }
pop music Broadway theatre
action count
action intersection
action filter_type
action find_reverse
entity pop music
relation genre
type common name
action filter_type
action find_reverse
entity Broadway theatre
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'pop music'] [{'concept': 'common name'}, 'genre', 'Broadway theatre']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:genre resource:pop_music . ?g rdf:type ontology:common_name . ?g property:genre resource:Broadway_theatre . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q157400 Q23215
(c(Q502895),P136,Q37073) (c(Q502895),P136,Q235065)
action count
action intersection
action filter_type
action find_reverse
entity Q37073
relation P136
type Q502895
action filter_type
action find_reverse
entity Q235065
relation P136
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P136', 'Q37073'] [{'concept': 'Q502895'}, 'P136', 'Q235065']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P136 resource:Q37073 . ?g rdf:type ontology:Q502895 . ?g property:P136 resource:Q235065 . ?g rdf:type ontology:Q502895 }
Idina Menzel Adele
2
action count
action intersection
action filter_type
action find_reverse
entity pop music
relation genre
type common name
action filter_type
action find_reverse
entity Broadway theatre
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'pop music'] [{'concept': 'common name'}, 'genre', 'Broadway theatre']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:genre resource:pop_music . ?g rdf:type ontology:common_name . ?g property:genre resource:Broadway_theatre . ?g rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q22695995
Q43229
USER
And how about Wang VS?
(Q22695995,P1056,c(Q43229))
action filter_type
action find
entity Q22695995
relation P1056
type Q43229
['Q22695995', 'P1056', {'concept': 'Q43229'}]
SELECT DISTINCT ?y WHERE { resource:Q22695995 property:P1056 ?y . ?y rdf:type ontology:Q43229 }
Wang VS
action filter_type
action find
entity Wang VS
relation product
type organization
['Wang VS', 'product', {'concept': 'organization'}]
SELECT DISTINCT ?y WHERE { resource:Wang_VS property:product ?y . ?y rdf:type ontology:organization }
[]
organization
Q1206799
SYSTEM
Wang Laboratories
Q1206799
(Q22695995,P1056,c(Q43229))
action filter_type
action find
entity Q22695995
relation P1056
type Q43229
[ANSWER]
['Q22695995', 'P1056', {'concept': 'Q43229'}]
SELECT DISTINCT ?y WHERE { resource:Q22695995 property:P1056 ?y . ?y rdf:type ontology:Q43229 }
Wang Laboratories
Wang Laboratories
action filter_type
action find
entity Wang VS
relation product
type organization
['Wang VS', 'product', {'concept': 'organization'}]
SELECT DISTINCT ?y WHERE { resource:Wang_VS property:product ?y . ?y rdf:type ontology:organization }
[]