Simple Question (Direct)
Simple Question
Q99266
P106
Q12737077
USER
Which occupations have Robert Taube as his/her 's career ?
(Q99266,P106,c(Q12737077))
action filter_type
action find
entity Q99266
relation P106
type Q12737077
['Q99266', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q99266 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Robert Taube
action filter_type
action find
entity Robert Taube
relation occupation
type occupation
['Robert Taube', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Robert_Taube property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q33999 Q2259451
SYSTEM
actor, stage actor
Q33999 Q2259451
(Q99266,P106,c(Q12737077))
action filter_type
action find
entity Q99266
relation P106
type Q12737077
The [ANSWERS] have Robert Taube as his/her 's career
['Q99266', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q99266 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
actor stage actor
The actor and stage actor have Robert Taube as his/her 's career
actor stage actor
action filter_type
action find
entity Robert Taube
relation occupation
type occupation
['Robert Taube', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Robert_Taube property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2259451
P101
Q618779
USER
Which award has his/her area as that occupation ?
(c(Q618779),P101,Q2259451)
action filter_type
action find_reverse
entity Q2259451
relation P101
type Q618779
[{'concept': 'Q618779'}, 'P101', 'Q2259451']
SELECT DISTINCT ?e WHERE { ?e property:P101 resource:Q2259451 . ?e rdf:type ontology:Q618779 }
stage actor
action filter_type
action find_reverse
entity stage actor
relation field of work
type award
[{'concept': 'award'}, 'field of work', 'stage actor']
SELECT DISTINCT ?e WHERE { ?e property:field_of_work resource:stage_actor . ?e rdf:type ontology:award }
[]
award
Clarification for simple ques.
Q2259451
SYSTEM
Did you mean stage actor ?
Q33999 Q2259451
(c(Q618779),P101,Q33999) (c(Q618779),P101,Q2259451)
[ANSWER]
[{'concept': 'Q618779'}, 'P101', 'Q33999'] [{'concept': 'Q618779'}, 'P101', 'Q2259451']
SELECT DISTINCT ?e WHERE { ?e property:P101 resource:Q2259451 . ?e rdf:type ontology:Q618779 }
actor stage actor
Did you mean stage actor ?
stage actor
[{'concept': 'award'}, 'field of work', 'actor'] [{'concept': 'award'}, 'field of work', 'stage actor']
SELECT DISTINCT ?e WHERE { ?e property:field_of_work resource:stage_actor . ?e rdf:type ontology:award }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q618779),P101,Q2259451)
[{'concept': 'Q618779'}, 'P101', 'Q2259451']
[{'concept': 'award'}, 'field of work', 'stage actor']
[]
Q5305712
SYSTEM
Drama Desk Award for Outstanding Featured Actor in a Play
Q5305712
(c(Q618779),P101,Q2259451)
action filter_type
action find_reverse
entity Q2259451
relation P101
type Q618779
Drama Desk Award for Outstanding featured Actor in a Play has his/her area as that occupation
[{'concept': 'Q618779'}, 'P101', 'Q2259451']
SELECT DISTINCT ?e WHERE { ?e property:P101 resource:Q2259451 . ?e rdf:type ontology:Q618779 }
Drama Desk Award for Outstanding Featured Actor in a Play
Drama Desk Award for Outstanding featured Actor in a Play has his/her area as that occupation
Drama Desk Award for Outstanding Featured Actor in a Play
action filter_type
action find_reverse
entity stage actor
relation field of work
type award
[{'concept': 'award'}, 'field of work', 'stage actor']
SELECT DISTINCT ?e WHERE { ?e property:field_of_work resource:stage_actor . ?e rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q99266
P161
Q201658
USER
Which film genres stars Robert Taube as actor ?
(c(Q201658),P161,Q99266)
action filter_type
action find_reverse
entity Q99266
relation P161
type Q201658
[{'concept': 'Q201658'}, 'P161', 'Q99266']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q99266 . ?o rdf:type ontology:Q201658 }
Robert Taube
action filter_type
action find_reverse
entity Robert Taube
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Robert Taube']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Robert_Taube . ?o rdf:type ontology:film_genre }
[]
film genre
Q7775508 Q822814
SYSTEM
The Woman Who Did, I.N.R.I.
Q7775508 Q822814
(c(Q201658),P161,Q99266)
action filter_type
action find_reverse
entity Q99266
relation P161
type Q201658
Star The Woman Who did and I.N.R.I. star Robert Taube as actor
[{'concept': 'Q201658'}, 'P161', 'Q99266']
SELECT DISTINCT ?o WHERE { ?o property:P161 resource:Q99266 . ?o rdf:type ontology:Q201658 }
The Woman Who Did I.N.R.I.
Star The Woman Who did and I.N.R.I. star Robert Taube as actor
The Woman Who Did I.N.R.I.
action filter_type
action find_reverse
entity Robert Taube
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Robert Taube']
SELECT DISTINCT ?o WHERE { ?o property:cast_member resource:Robert_Taube . ?o rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7775508
P344
Q502895
USER
Who is the director of photography for The Woman Who Did ?
(Q7775508,P344,c(Q502895))
action filter_type
action find
entity Q7775508
relation P344
type Q502895
['Q7775508', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q7775508 property:P344 ?h . ?h rdf:type ontology:Q502895 }
The Woman Who Did
action filter_type
action find
entity The Woman Who Did
relation director of photography
type common name
['The Woman Who Did', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:The_Woman_Who_Did property:director_of_photography ?h . ?h rdf:type ontology:common_name }
[]
common name
Q74626
SYSTEM
Carl Hoffmann
Q74626
(Q7775508,P344,c(Q502895))
action filter_type
action find
entity Q7775508
relation P344
type Q502895
The director of photography for The Woman Did is of [ANSWER]
['Q7775508', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q7775508 property:P344 ?h . ?h rdf:type ontology:Q502895 }
Carl Hoffmann
The director of photography for The Woman Did is of Carl Hoffmann
Carl Hoffmann
action filter_type
action find
entity The Woman Who Did
relation director of photography
type common name
['The Woman Who Did', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:The_Woman_Who_Did property:director_of_photography ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7775508
P58
Q502895
USER
Who was the screenwriter for that film genre ?
(Q74626,P58,c(Q502895))
action filter_type
action find
entity Q7775508
relation P58
type Q502895
['Q74626', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q7775508 property:P58 ?s }
The Woman Who Did
action filter_type
action find
entity The Woman Who Did
relation screenwriter
type common name
['Carl Hoffmann', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:The_Woman_Who_Did property:screenwriter ?s }
[]
common name
Q725248
SYSTEM
Grant Allen
Q725248
(Q74626,P58,c(Q502895))
action filter_type
action find
entity Q7775508
relation P58
type Q502895
The screenwriter for that film genre was the [ANSWER]
['Q74626', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q7775508 property:P58 ?s }
Grant Allen
The screenwriter for that film genre was the Grant Allen
Grant Allen
action filter_type
action find
entity The Woman Who Did
relation screenwriter
type common name
['Carl Hoffmann', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:The_Woman_Who_Did property:screenwriter ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7775508
P840
Q1496967
USER
What location is The Woman Who Did set in ?
(Q7775508,P840,c(Q1496967))
action filter_type
action find
entity Q7775508
relation P840
type Q1496967
['Q7775508', 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?o WHERE { resource:Q7775508 property:P840 ?o . ?o rdf:type ontology:Q1496967 }
The Woman Who Did
action filter_type
action find
entity The Woman Who Did
relation narrative location
type territorial entity
['The Woman Who Did', 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:The_Woman_Who_Did property:narrative_location ?o . ?o rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q7775508,P840,c(Q1496967))
action filter_type
action find
entity Q7775508
relation P840
type Q1496967
The Woman Did set in is in [ANSWER]
['Q7775508', 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?o WHERE { resource:Q7775508 property:P840 ?o . ?o rdf:type ontology:Q1496967 }
England
The Woman Did set in is in England
England
action filter_type
action find
entity The Woman Who Did
relation narrative location
type territorial entity
['The Woman Who Did', 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:The_Woman_Who_Did property:narrative_location ?o . ?o rdf:type ontology:territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q574057
Q1496967
USER
And what about Mona Lisa?
(Q574057,P840,c(Q1496967))
action filter_type
action find
entity Q574057
relation P840
type Q1496967
['Q574057', 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q574057 property:P840 ?f . ?f rdf:type ontology:Q1496967 }
Mona Lisa
action filter_type
action find
entity Mona Lisa
relation narrative location
type territorial entity
['Mona Lisa', 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mona_Lisa property:narrative_location ?f . ?f rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q574057,P840,c(Q1496967))
action filter_type
action find
entity Q574057
relation P840
type Q1496967
[ANSWER]
['Q574057', 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q574057 property:P840 ?f . ?f rdf:type ontology:Q1496967 }
England
England
action filter_type
action find
entity Mona Lisa
relation narrative location
type territorial entity
['Mona Lisa', 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mona_Lisa property:narrative_location ?f . ?f rdf:type ontology:territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q21 Q48438 Q3552471
P417
Q502895
USER
Does that territory have Saint George and Urse d'Abetot as their patron saint ?
(Q21,P417,Q48438) (Q21,P417,Q3552471)
action is_in
entity Q21
action intersection
action find_reverse
entity Q48438
relation P417
action find_reverse
entity Q3552471
relation P417
['Q21', 'P417', 'Q48438'] ['Q21', 'P417', 'Q3552471']
ASK WHERE { resource:Q21 property:P417 resource:Q48438 . resource:Q21 property:P417 resource:Q3552471 }
England Saint George Urse d'Abetot
action is_in
entity England
action intersection
action find_reverse
entity Saint George
relation patron saint
action find_reverse
entity Urse d'Abetot
relation patron saint
['England', 'patron saint', 'Saint George'] ['England', 'patron saint', "Urse d'Abetot"]
ASK WHERE { resource:England property:patron_saint resource:Saint_George . resource:England property:patron_saint resource:Urse_d'Abetot }
[]
common name
SYSTEM
YES and NO respectively
(Q21,P417,Q48438) (Q21,P417,Q3552471)
action is_in
entity Q21
action intersection
action find_reverse
entity Q48438
relation P417
action find_reverse
entity Q3552471
relation P417
[ANSWER]
['Q21', 'P417', 'Q48438'] ['Q21', 'P417', 'Q3552471']
ASK WHERE { resource:Q21 property:P417 resource:Q48438 . resource:Q21 property:P417 resource:Q3552471 }
YES and NO respectively
action is_in
entity England
action intersection
action find_reverse
entity Saint George
relation patron saint
action find_reverse
entity Urse d'Abetot
relation patron saint
['England', 'patron saint', 'Saint George'] ['England', 'patron saint', "Urse d'Abetot"]
ASK WHERE { resource:England property:patron_saint resource:Saint_George . resource:England property:patron_saint resource:Urse_d'Abetot }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?j } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?s = ?u ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?j } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?s = ?u ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?j } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?s = ?u ) }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?j } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?s = ?u ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q34379 Q386724 Q3305213
USER
How many musical instruments are expressed in around the same number of works or paintings as that musical instrument ?
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:P180 ?y } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:depicts ?y } . ?z rdf:type ontology:work . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
musical instrument work painting
Comparative|Count over More/Less|Mult. entity type|Clarification
Q173453
SYSTEM
Did you mean wind instrument ?
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:P180 ?y } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
Did you mean wind instrument ?
wind instrument
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:depicts ?y } . ?z rdf:type ontology:work . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
[]
SYSTEM
15
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q426948 Q871633 Q3500690 Q80019 Q1798603
(c(Q386724)|c(Q3305213),P180,c(Q34379))
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q16532276 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument sistrum Handbell Church bell double bass string instrument
15
[[{'concept': 'work'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:work . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]