Simple Question (Direct)
Simple Question
Q5615837
P136
Q1914636
USER
What is the genre of Magnus Dahlström ?
(Q5615837,P136,c(Q1914636))
action filter_type
action find
entity Q5615837
relation P136
type Q1914636
['Q5615837', 'P136', {'concept': 'Q1914636'}]
SELECT DISTINCT ?f WHERE { resource:Q5615837 property:P136 ?f . ?f rdf:type ontology:Q1914636 }
Magnus Dahlström
action filter_type
action find
entity Magnus Dahlström
relation genre
type activity
['Magnus Dahlström', 'genre', {'concept': 'activity'}]
SELECT DISTINCT ?f WHERE { resource:Magnus_Dahlström property:genre ?f . ?f rdf:type ontology:activity }
[]
activity
Q11635
SYSTEM
theater
Q11635
(Q5615837,P136,c(Q1914636))
action filter_type
action find
entity Q5615837
relation P136
type Q1914636
The genre of Magnus Dahlström is a [ANSWER]
['Q5615837', 'P136', {'concept': 'Q1914636'}]
SELECT DISTINCT ?f WHERE { resource:Q5615837 property:P136 ?f . ?f rdf:type ontology:Q1914636 }
theater
The genre of Magnus Dahlström is a theater
theater
action filter_type
action find
entity Magnus Dahlström
relation genre
type activity
['Magnus Dahlström', 'genre', {'concept': 'activity'}]
SELECT DISTINCT ?f WHERE { resource:Magnus_Dahlström property:genre ?f . ?f rdf:type ontology:activity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5615837
P106
Q151885
USER
What is the job of Magnus Dahlström ?
(Q5615837,P106,c(Q151885))
action filter_type
action find
entity Q5615837
relation P106
type Q151885
['Q5615837', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { resource:Q5615837 property:P106 ?s . ?s rdf:type ontology:Q151885 }
Magnus Dahlström
action filter_type
action find
entity Magnus Dahlström
relation occupation
type concept
['Magnus Dahlström', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { resource:Magnus_Dahlström property:occupation ?s . ?s rdf:type ontology:concept }
[]
concept
Q214917
SYSTEM
playwright
Q214917
(Q5615837,P106,c(Q151885))
action filter_type
action find
entity Q5615837
relation P106
type Q151885
The job of Magnus Dahlström is a [ANSWER]
['Q5615837', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { resource:Q5615837 property:P106 ?s . ?s rdf:type ontology:Q151885 }
playwright
The job of Magnus Dahlström is a playwright
playwright
action filter_type
action find
entity Magnus Dahlström
relation occupation
type concept
['Magnus Dahlström', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { resource:Magnus_Dahlström property:occupation ?s . ?s rdf:type ontology:concept }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7397934
Q151885
USER
And how about Sadie McMahon?
(Q7397934,P106,c(Q151885))
action filter_type
action find
entity Q7397934
relation P106
type Q151885
['Q7397934', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q151885 . resource:Q7397934 property:P106 ?q }
Sadie McMahon
action filter_type
action find
entity Sadie McMahon
relation occupation
type concept
['Sadie McMahon', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:concept . resource:Sadie_McMahon property:occupation ?q }
[]
concept
Q10871364
SYSTEM
baseball player
Q10871364
(Q7397934,P106,c(Q151885))
action filter_type
action find
entity Q7397934
relation P106
type Q151885
[ANSWER]
['Q7397934', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q151885 . resource:Q7397934 property:P106 ?q }
baseball player
baseball player
action filter_type
action find
entity Sadie McMahon
relation occupation
type concept
['Sadie McMahon', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:concept . resource:Sadie_McMahon property:occupation ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q10871364 Q11668102
P106
Q502895
USER
Does Masayuki Umano have the profession of that concept ?
(Q11668102,P106,Q10871364)
action is_in
entity Q11668102
action find
entity Q10871364
relation P106
['Q11668102', 'P106', 'Q10871364']
ASK WHERE { resource:Q10871364 property:P106 resource:Q11668102 }
baseball player Masayuki Umano
action is_in
entity Masayuki Umano
action find
entity baseball player
relation occupation
['Masayuki Umano', 'occupation', 'baseball player']
ASK WHERE { resource:baseball_player property:occupation resource:Masayuki_Umano }
[]
common name
SYSTEM
NO
(Q11668102,P106,Q10871364)
action is_in
entity Q11668102
action find
entity Q10871364
relation P106
[ANSWER]
['Q11668102', 'P106', 'Q10871364']
ASK WHERE { resource:Q10871364 property:P106 resource:Q11668102 }
No
action is_in
entity Masayuki Umano
action find
entity baseball player
relation occupation
['Masayuki Umano', 'occupation', 'baseball player']
ASK WHERE { resource:baseball_player property:occupation resource:Masayuki_Umano }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q10871364
P106
Q95074 Q1151733
USER
How many fictional characters or baseball positions have the profession as baseball player ?
(c(Q95074),P106,Q10871364) (c(Q1151733),P106,Q10871364)
action count
action union
action filter_type
action find_reverse
entity Q10871364
relation P106
type Q95074
action filter_type
action find_reverse
entity Q10871364
relation P106
type Q1151733
[{'concept': 'Q95074'}, 'P106', 'Q10871364'] [{'concept': 'Q1151733'}, 'P106', 'Q10871364']
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?e ) { ( ontology:Q95074 ) ( ontology:Q1151733 ) } . ?j rdf:type ?e }
baseball player
action count
action union
action filter_type
action find_reverse
entity baseball player
relation occupation
type fictional character
action filter_type
action find_reverse
entity baseball player
relation occupation
type baseball position
[{'concept': 'fictional character'}, 'occupation', 'baseball player'] [{'concept': 'baseball position'}, 'occupation', 'baseball player']
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?e ) { ( ontology:fictional_character ) ( ontology:baseball_position ) } . ?j rdf:type ?e }
[]
fictional character baseball position
SYSTEM
2
Q23638926 Q4931648
(c(Q95074),P106,Q10871364) (c(Q1151733),P106,Q10871364)
action count
action union
action filter_type
action find_reverse
entity Q10871364
relation P106
type Q95074
action filter_type
action find_reverse
entity Q10871364
relation P106
type Q1151733
[ANSWER]
[{'concept': 'Q95074'}, 'P106', 'Q10871364'] [{'concept': 'Q1151733'}, 'P106', 'Q10871364']
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?e ) { ( ontology:Q95074 ) ( ontology:Q1151733 ) } . ?j rdf:type ?e }
Jayson Turk Bob Allen
2
action count
action union
action filter_type
action find_reverse
entity baseball player
relation occupation
type fictional character
action filter_type
action find_reverse
entity baseball player
relation occupation
type baseball position
[{'concept': 'fictional character'}, 'occupation', 'baseball player'] [{'concept': 'baseball position'}, 'occupation', 'baseball player']
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { VALUES ( ?e ) { ( ontology:fictional_character ) ( ontology:baseball_position ) } . ?j rdf:type ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q1914636 Q1190554 Q151885
USER
How many concepts are a component of approximately 1 activities or events ?
(c(Q151885),P361,c(Q1914636)|c(Q1190554))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q151885
type Q1914636
action find_tuple_counts
relation P361
type Q151885
type Q1190554
value 1
[{'concept': 'Q151885'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q1914636 ) ( ontology:Q1190554 ) } . ?j rdf:type ?t } GROUP BY ?r } . FILTER ( ?p = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation part of
type concept
type activity
action find_tuple_counts
relation part of
type concept
type event
value 1
[{'concept': 'concept'}, 'part of', [{'concept': 'activity'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?r WHERE { VALUES ( ?t ) { ( ontology:activity ) ( ontology:event ) } . ?j rdf:type ?t } GROUP BY ?r } . FILTER ( ?p = 1 ) }
[]
activity event concept
SYSTEM
7
Q7398540 Q792542 Q39072 Q39680 Q4070702 Q5267401 Q1365530
(c(Q151885),P361,c(Q1914636)|c(Q1190554))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q151885
type Q1914636
action find_tuple_counts
relation P361
type Q151885
type Q1190554
value 1
[ANSWER]
[{'concept': 'Q151885'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?r WHERE { VALUES ( ?t ) { ( ontology:Q1914636 ) ( ontology:Q1190554 ) } . ?j rdf:type ?t } GROUP BY ?r } . FILTER ( ?p = 1 ) }
safe mode axiomatic system microeconomics macroeconomics literary archetype typographic unit turn
7
action count
action approx
action union
action find_tuple_counts
relation part of
type concept
type activity
action find_tuple_counts
relation part of
type concept
type event
value 1
[{'concept': 'concept'}, 'part of', [{'concept': 'activity'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?r WHERE { VALUES ( ?t ) { ( ontology:activity ) ( ontology:event ) } . ?j rdf:type ?t } GROUP BY ?r } . FILTER ( ?p = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q10800557 Q10871364
P106
Q502895
USER
Which people have the profession of baseball player and film actor ?
AND((c(Q502895),P106,Q10871364), (c(Q502895),P106,Q10800557))
action filter_type
action intersection
action find_reverse
entity Q10871364
relation P106
action find_reverse
entity Q10800557
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q10871364'], [{'concept': 'Q502895'}, 'P106', 'Q10800557']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P106 resource:Q10871364 . ?u property:P106 resource:Q10800557 }
film actor baseball player
action filter_type
action intersection
action find_reverse
entity baseball player
relation occupation
action find_reverse
entity film actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'baseball player'], [{'concept': 'common name'}, 'occupation', 'film actor']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:occupation resource:baseball_player . ?u property:occupation resource:film_actor }
[]
common name
Q983360 Q537252 Q103157 Q186485 Q705738 Q888295 Q1699321
SYSTEM
Robert Logan, Paul Gleason, Kurt Russell, Billy Crystal, Chuck Connors, Bob Uecker, John Beradino
Q983360 Q537252 Q103157 Q186485 Q705738 Q888295 Q1699321
AND((c(Q502895),P106,Q10871364), (c(Q502895),P106,Q10800557))
action filter_type
action intersection
action find_reverse
entity Q10871364
relation P106
action find_reverse
entity Q10800557
relation P106
type Q502895
[ANSWERS] have the profession of baseball player and film actor
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q10871364'], [{'concept': 'Q502895'}, 'P106', 'Q10800557']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P106 resource:Q10871364 . ?u property:P106 resource:Q10800557 }
Robert Logan Paul Gleason Kurt Russell Billy Crystal Chuck Connors Bob Uecker John Beradino
Robert Logan, Paul Gleason, Kurt Russell, Billy Crystal, Chuck Connors, Bob Uecker and John Beradino have the profession of baseball player and film actor
Robert Logan Paul Gleason Kurt Russell Billy Crystal Chuck Connors Bob Uecker John Beradino
action filter_type
action intersection
action find_reverse
entity baseball player
relation occupation
action find_reverse
entity film actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'baseball player'], [{'concept': 'common name'}, 'occupation', 'film actor']]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:occupation resource:baseball_player . ?u property:occupation resource:film_actor }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 1329 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1329
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { FILTER ( ?l = 1329 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 . ?j property:P1303 ?i } GROUP BY ?i } }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1329
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { FILTER ( ?l = 1329 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument . ?j property:instrument ?i } GROUP BY ?i } }
[]
musical instrument common name
SYSTEM
64
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1329
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { FILTER ( ?l = 1329 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 . ?j property:P1303 ?i } GROUP BY ?i } }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
64
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1329
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { FILTER ( ?l = 1329 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument . ?j property:instrument ?i } GROUP BY ?i } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q705738
P641
Q349
USER
Which sport was Chuck Connors a part of ?
(Q705738,P641,c(Q349))
action filter_type
action find
entity Q705738
relation P641
type Q349
['Q705738', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q705738 property:P641 ?g }
Chuck Connors
action filter_type
action find
entity Chuck Connors
relation sport
type sport
['Chuck Connors', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Chuck_Connors property:sport ?g }
[]
sport
Q5369
SYSTEM
baseball
Q5369
(Q705738,P641,c(Q349))
action filter_type
action find
entity Q705738
relation P641
type Q349
Which sport was Chuck Connors a part of
['Q705738', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q705738 property:P641 ?g }
baseball
Which sport was Chuck Connors a part of
baseball
action filter_type
action find
entity Chuck Connors
relation sport
type sport
['Chuck Connors', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Chuck_Connors property:sport ?g }
[]