Simple Question (Direct)
Simple Question
Q11460538
P734
Q82799
USER
Who is associated with Michiko Ogawa ?
(Q11460538,P734,c(Q82799))
action filter_type
action find
entity Q11460538
relation P734
type Q82799
['Q11460538', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q11460538 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Michiko Ogawa
action filter_type
action find
entity Michiko Ogawa
relation family name
type name
['Michiko Ogawa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Michiko_Ogawa property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q10607952
SYSTEM
Ogawa
Q10607952
(Q11460538,P734,c(Q82799))
action filter_type
action find
entity Q11460538
relation P734
type Q82799
[ANSWER] is associated with Michiko [ANSWER]
['Q11460538', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q11460538 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Ogawa
Ogawa is associated with Michiko Ogawa
Ogawa
action filter_type
action find
entity Michiko Ogawa
relation family name
type name
['Michiko Ogawa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Michiko_Ogawa property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11460538
P1303
Q34379
USER
Which musical instrument can Michiko Ogawa perform with ?
(Q11460538,P1303,c(Q34379))
action filter_type
action find
entity Q11460538
relation P1303
type Q34379
['Q11460538', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { resource:Q11460538 property:P1303 ?d . ?d rdf:type ontology:Q34379 }
Michiko Ogawa
action filter_type
action find
entity Michiko Ogawa
relation instrument
type musical instrument
['Michiko Ogawa', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { resource:Michiko_Ogawa property:instrument ?d . ?d rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q11460538,P1303,c(Q34379))
action filter_type
action find
entity Q11460538
relation P1303
type Q34379
Michiko Ogawa can perform on [ANSWER]
['Q11460538', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { resource:Q11460538 property:P1303 ?d . ?d rdf:type ontology:Q34379 }
piano
Michiko Ogawa can perform on piano
piano
action filter_type
action find
entity Michiko Ogawa
relation instrument
type musical instrument
['Michiko Ogawa', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { resource:Michiko_Ogawa property:instrument ?d . ?d rdf:type ontology:musical_instrument }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q22342313
Q34379
USER
And what about Adele Lewing?
(Q22342313,P1303,c(Q34379))
action filter_type
action find
entity Q22342313
relation P1303
type Q34379
['Q22342313', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { resource:Q22342313 property:P1303 ?f . ?f rdf:type ontology:Q34379 }
Adele Lewing
action filter_type
action find
entity Adele Lewing
relation instrument
type musical instrument
['Adele Lewing', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { resource:Adele_Lewing property:instrument ?f . ?f rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q22342313,P1303,c(Q34379))
action filter_type
action find
entity Q22342313
relation P1303
type Q34379
[ANSWER]
['Q22342313', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { resource:Q22342313 property:P1303 ?f . ?f rdf:type ontology:Q34379 }
piano
piano
action filter_type
action find
entity Adele Lewing
relation instrument
type musical instrument
['Adele Lewing', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { resource:Adele_Lewing property:instrument ?f . ?f rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22342313
P21
Q290
USER
Which sex does Adele Lewing have ?
(Q22342313,P21,c(Q290))
action filter_type
action find
entity Q22342313
relation P21
type Q290
['Q22342313', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q22342313 property:P21 ?v . ?v rdf:type ontology:Q290 }
Adele Lewing
action filter_type
action find
entity Adele Lewing
relation gender
type sex
['Adele Lewing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Adele_Lewing property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q22342313,P21,c(Q290))
action filter_type
action find
entity Q22342313
relation P21
type Q290
Adele Lewing has a [ANSWER]
['Q22342313', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q22342313 property:P21 ?v . ?v rdf:type ontology:Q290 }
female
Adele Lewing has a female
female
action filter_type
action find
entity Adele Lewing
relation gender
type sex
['Adele Lewing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Adele_Lewing property:gender ?v . ?v rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q2883291
P21
Q502895
USER
Is Virginia Martínez a that sex ?
(Q2883291,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q2883291
relation P21
['Q2883291', 'P21', 'Q6581072']
ASK WHERE { resource:Q2883291 property:P21 resource:Q6581072 }
female Virginia Martínez
action is_in
entity female
action find
entity Virginia Martínez
relation gender
['Virginia Martínez', 'gender', 'female']
ASK WHERE { resource:Virginia_Martínez property:gender resource:female }
[]
common name
SYSTEM
YES
(Q2883291,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q2883291
relation P21
[ANSWER]
['Q2883291', 'P21', 'Q6581072']
ASK WHERE { resource:Q2883291 property:P21 resource:Q6581072 }
Yes
action is_in
entity female
action find
entity Virginia Martínez
relation gender
['Virginia Martínez', 'gender', 'female']
ASK WHERE { resource:Virginia_Martínez property:gender resource:female }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5994 Q3186526 Q2535723
P61
Q502895
USER
Was piano invented or discovered by José Pinto Coelho and Nobuyuki Kato ?
(Q5994,P61,Q3186526) (Q5994,P61,Q2535723)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q3186526
relation P61
action find_reverse
entity Q2535723
relation P61
['Q5994', 'P61', 'Q3186526'] ['Q5994', 'P61', 'Q2535723']
ASK WHERE { resource:Q5994 property:P61 resource:Q3186526 . resource:Q5994 property:P61 resource:Q2535723 }
piano José Pinto Coelho Nobuyuki Kato
action is_in
entity piano
action intersection
action find_reverse
entity José Pinto Coelho
relation discoverer or inventor
action find_reverse
entity Nobuyuki Kato
relation discoverer or inventor
['piano', 'discoverer or inventor', 'José Pinto Coelho'] ['piano', 'discoverer or inventor', 'Nobuyuki Kato']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:José_Pinto_Coelho . resource:piano property:discoverer_or_inventor resource:Nobuyuki_Kato }
[]
common name
SYSTEM
NO
(Q5994,P61,Q3186526) (Q5994,P61,Q2535723)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q3186526
relation P61
action find_reverse
entity Q2535723
relation P61
[ANSWER]
['Q5994', 'P61', 'Q3186526'] ['Q5994', 'P61', 'Q2535723']
ASK WHERE { resource:Q5994 property:P61 resource:Q3186526 . resource:Q5994 property:P61 resource:Q2535723 }
No
action is_in
entity piano
action intersection
action find_reverse
entity José Pinto Coelho
relation discoverer or inventor
action find_reverse
entity Nobuyuki Kato
relation discoverer or inventor
['piano', 'discoverer or inventor', 'José Pinto Coelho'] ['piano', 'discoverer or inventor', 'Nobuyuki Kato']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:José_Pinto_Coelho . resource:piano property:discoverer_or_inventor resource:Nobuyuki_Kato }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q50678
P35
Q502895 Q7275 Q15617994
USER
How many people are elected as the head of state of greater number of states or administrative territories than John Mahama ?
(c(Q7275)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q50678
relation P35
type Q7275
type Q15617994
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P35 resource:Q50678 . { { ?s rdf:type ontology:Q7275 } UNION { ?s rdf:type ontology:Q15617994 } } } } . FILTER ( ?a > ?o ) }
John Mahama
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity John Mahama
relation head of state
type state
type designation for an administrative territorial entity
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:head_of_state resource:John_Mahama . { { ?s rdf:type ontology:state } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?a > ?o ) }
[]
common name state designation for an administrative territorial entity
SYSTEM
16
Q154952 Q157 Q152274 Q7747 Q147989 Q36233 Q43330 Q12950 Q324108 Q156806 Q189575 Q151944 Q559756 Q2667 Q229493 Q9682
(c(Q7275)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q50678
relation P35
type Q7275
type Q15617994
[ANSWER]
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P35 resource:Q50678 . { { ?s rdf:type ontology:Q7275 } UNION { ?s rdf:type ontology:Q15617994 } } } } . FILTER ( ?a > ?o ) }
Willem-Alexander of the Netherlands François Hollande Edvard Beneš Vladimir Putin Joaquín Balaguer Václav Havel Mikhail Saakashvili Alain Poher Ibrahim Boubacar Keïta Konstantinos Karamanlis Ion Iliescu Leonel Fernández el ladron Dragan Čović Paul von Hindenburg Nino Burjanadze Elizabeth II
16
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity John Mahama
relation head of state
type state
type designation for an administrative territorial entity
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:head_of_state resource:John_Mahama . { { ?s rdf:type ontology:state } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?a > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q57276
P35
Q502895 Q7275 Q15617994
USER
And how about Michael Higgins?
(c(Q7275)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q57276
relation P35
type Q7275
type Q15617994
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:P35 resource:Q57276 . { VALUES ( ?h ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?j rdf:type ?h } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?x WHERE { { ?w property:P35 ?x . ?w rdf:type ontology:Q7275 . ?x rdf:type ontology:Q502895 } UNION { ?w property:P35 ?x . ?x rdf:type ontology:Q502895 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?x } }
Michael Higgins
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Michael Higgins
relation head of state
type state
type designation for an administrative territorial entity
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:head_of_state resource:Michael_Higgins . { VALUES ( ?h ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?h } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?x WHERE { { ?w property:head_of_state ?x . ?w rdf:type ontology:state . ?x rdf:type ontology:common_name } UNION { ?w property:head_of_state ?x . ?x rdf:type ontology:common_name . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } }
[]
common name state designation for an administrative territorial entity
SYSTEM
16
Q154952 Q157 Q152274 Q7747 Q147989 Q36233 Q43330 Q12950 Q324108 Q156806 Q189575 Q151944 Q559756 Q2667 Q229493 Q9682
(c(Q7275)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q57276
relation P35
type Q7275
type Q15617994
[ANSWER]
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:P35 resource:Q57276 . { VALUES ( ?h ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?j rdf:type ?h } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?x WHERE { { ?w property:P35 ?x . ?w rdf:type ontology:Q7275 . ?x rdf:type ontology:Q502895 } UNION { ?w property:P35 ?x . ?x rdf:type ontology:Q502895 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?x } }
Willem-Alexander of the Netherlands François Hollande Edvard Beneš Vladimir Putin Joaquín Balaguer Václav Havel Mikhail Saakashvili Alain Poher Ibrahim Boubacar Keïta Konstantinos Karamanlis Ion Iliescu Leonel Fernández el ladron Dragan Čović Paul von Hindenburg Nino Burjanadze Elizabeth II
16
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Michael Higgins
relation head of state
type state
type designation for an administrative territorial entity
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { ?j property:head_of_state resource:Michael_Higgins . { VALUES ( ?h ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?h } } } . FILTER ( ?k > ?g ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) ?x WHERE { { ?w property:head_of_state ?x . ?w rdf:type ontology:state . ?x rdf:type ontology:common_name } UNION { ?w property:head_of_state ?x . ?x rdf:type ontology:common_name . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5994
P1303
Q16334295 Q215380
USER
How many groups of humans or bands can play piano ?
(c(Q16334295),P1303,Q5994) (c(Q215380),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q16334295
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q215380
[{'concept': 'Q16334295'}, 'P1303', 'Q5994'] [{'concept': 'Q215380'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z rdf:type ontology:Q16334295 . ?z property:P1303 resource:Q5994 } UNION { ?z property:P1303 resource:Q5994 . ?z rdf:type ontology:Q215380 } }
piano
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type group of humans
action filter_type
action find_reverse
entity piano
relation instrument
type band
[{'concept': 'group of humans'}, 'instrument', 'piano'] [{'concept': 'band'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z rdf:type ontology:group_of_humans . ?z property:instrument resource:piano } UNION { ?z property:instrument resource:piano . ?z rdf:type ontology:band } }
[]
group of humans band
SYSTEM
10
Q840016 Q15135642 Q15862 Q6772002 Q3743009 Q6194342 Q825336 Q2301016 Q19958184 Q1266374
(c(Q16334295),P1303,Q5994) (c(Q215380),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q16334295
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q215380
[ANSWER]
[{'concept': 'Q16334295'}, 'P1303', 'Q5994'] [{'concept': 'Q215380'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z rdf:type ontology:Q16334295 . ?z property:P1303 resource:Q5994 } UNION { ?z property:P1303 resource:Q5994 . ?z rdf:type ontology:Q215380 } }
Duo Vela Carles & Sofia Piano Duo Queen Marlowe Brothers Ferrante & Teicher Jim Copp and Ed Brown The Piano Guys Duo Crommelynck It Was Romance Duo Tal & Groethuysen
10
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type group of humans
action filter_type
action find_reverse
entity piano
relation instrument
type band
[{'concept': 'group of humans'}, 'instrument', 'piano'] [{'concept': 'band'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { ?z rdf:type ontology:group_of_humans . ?z property:instrument resource:piano } UNION { ?z property:instrument resource:piano . ?z rdf:type ontology:band } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q62 Q57276
P840 P161
Q838948
USER
Which works of art have Michael Higgins in their star cast and do n't Have narratives at San Francisco ?
AND((c(Q838948),P161,Q57276), NOT((c(Q838948),P840,Q62)))
action filter_type
action difference
action find_reverse
entity Q57276
relation P161
action find_reverse
entity Q62
relation P840
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q57276'], {'NOT': [[{'concept': 'Q838948'}, 'P840', 'Q62']]}]}
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q57276 . MINUS { ?v property:P840 resource:Q62 } . ?v rdf:type ontology:Q838948 }
San Francisco Michael Higgins
action filter_type
action difference
action find_reverse
entity Michael Higgins
relation cast member
action find_reverse
entity San Francisco
relation narrative location
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Michael Higgins'], {'NOT': [[{'concept': 'work of art'}, 'narrative location', 'San Francisco']]}]}
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Michael_Higgins . MINUS { ?v property:narrative_location resource:San_Francisco } . ?v rdf:type ontology:work_of_art }
[]
work of art
Q760926 Q1544908 Q1167169 Q493807 Q960668 Q764639 Q379296 Q749569 Q3015930 Q212660
SYSTEM
Fort Apache, The Bronx, The Seduction of Joe Tynan, The Arrangement, Angel Heart, State and Main, The Stepford Wives, Did You Hear About the Morgans?, Swimfan, Desperate Characters, Dead Bang
Q760926 Q1544908 Q1167169 Q493807 Q960668 Q764639 Q379296 Q749569 Q3015930 Q212660
AND((c(Q838948),P161,Q57276), NOT((c(Q838948),P840,Q62)))
action filter_type
action difference
action find_reverse
entity Q57276
relation P161
action find_reverse
entity Q62
relation P840
type Q838948
[ANSWERS] have Michael Higgins in their star cast and do n't Have narratives at San Francisco
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q57276'], {'NOT': [[{'concept': 'Q838948'}, 'P840', 'Q62']]}]}
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q57276 . MINUS { ?v property:P840 resource:Q62 } . ?v rdf:type ontology:Q838948 }
Fort Apache, The Bronx The Seduction of Joe Tynan The Arrangement Angel Heart State and Main The Stepford Wives Did You Hear About the Morgans? Swimfan Desperate Characters Dead Bang
Fort Apache, The Bronx, The Seduction of Joe Tynan, The Arrangement, Angel Heart, State and Main, The Stepford Wives, Did You Hear About the Morgans?, Swimfan, Desperate Characters and Dead Bang have Michael Higgins in their star cast and do n't Have narratives at San Francisco
Fort Apache, The Bronx The Seduction of Joe Tynan The Arrangement Angel Heart State and Main The Stepford Wives Did You Hear About the Morgans? Swimfan Desperate Characters Dead Bang
action filter_type
action difference
action find_reverse
entity Michael Higgins
relation cast member
action find_reverse
entity San Francisco
relation narrative location
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Michael Higgins'], {'NOT': [[{'concept': 'work of art'}, 'narrative location', 'San Francisco']]}]}
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Michael_Higgins . MINUS { ?v property:narrative_location resource:San_Francisco } . ?v rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q760926 Q1544908 Q1167169 Q493807 Q960668 Q764639 Q379296 Q749569 Q3015930 Q212660
P161
Q502895
USER
Which people starred in those works of art ?
(Q760926,P161,c(Q502895)) (Q1544908,P161,c(Q502895)) (Q1167169,P161,c(Q502895)) (Q493807,P161,c(Q502895)) (Q960668,P161,c(Q502895)) (Q764639,P161,c(Q502895)) (Q379296,P161,c(Q502895)) (Q749569,P161,c(Q502895)) (Q3015930,P161,c(Q502895)) (Q212660,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
['Q760926', 'P161', {'concept': 'Q502895'}] ['Q1544908', 'P161', {'concept': 'Q502895'}] ['Q1167169', 'P161', {'concept': 'Q502895'}] ['Q493807', 'P161', {'concept': 'Q502895'}] ['Q960668', 'P161', {'concept': 'Q502895'}] ['Q764639', 'P161', {'concept': 'Q502895'}] ['Q379296', 'P161', {'concept': 'Q502895'}] ['Q749569', 'P161', {'concept': 'Q502895'}] ['Q3015930', 'P161', {'concept': 'Q502895'}] ['Q212660', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?n property:P161 ?a . VALUES ( ?n ) { ( resource:Q760926 ) ( resource:Q1544908 ) ( resource:Q1167169 ) } . ?a rdf:type ontology:Q502895 }
Fort Apache, The Bronx The Seduction of Joe Tynan The Arrangement Angel Heart State and Main The Stepford Wives Did You Hear About the Morgans? Swimfan Desperate Characters Dead Bang
action filter_type
action find
entity prev_answer
relation cast member
type common name
['Fort Apache, The Bronx', 'cast member', {'concept': 'common name'}] ['The Seduction of Joe Tynan', 'cast member', {'concept': 'common name'}] ['The Arrangement', 'cast member', {'concept': 'common name'}] ['Angel Heart', 'cast member', {'concept': 'common name'}] ['State and Main', 'cast member', {'concept': 'common name'}] ['The Stepford Wives', 'cast member', {'concept': 'common name'}] ['Did You Hear About the Morgans?', 'cast member', {'concept': 'common name'}] ['Swimfan', 'cast member', {'concept': 'common name'}] ['Desperate Characters', 'cast member', {'concept': 'common name'}] ['Dead Bang', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?n property:cast_member ?a . VALUES ( ?n ) { ( resource:Fort_Apache,_The_Bronx ) ( resource:The_Seduction_of_Joe_Tynan ) ( resource:The_Arrangement ) } . ?a rdf:type ontology:common_name }
[]
common name
Q873 Q104027 Q36949
SYSTEM
Meryl Streep, Kirk Douglas, Robert De Niro
Q262091 Q1923206 Q460289 Q2899062 Q299314 Q154421 Q57276 Q41871 Q1334766 Q233862 Q9032823 Q57276 Q350753 Q153125 Q312084 Q313522 Q269809 Q873 Q310394 Q2940244 Q1065165 Q954950 Q1277018 Q395205 Q168721 Q450047 Q57276 Q104146 Q104027 Q57276 Q232414 Q950313 Q178552 Q938416 Q36949 Q1198697 Q234679 Q338726 Q63304 Q57276 Q170530 Q373989 Q210120 Q113206 Q861494 Q329784 Q180560 Q287572 Q224159 Q270324 Q313039 Q1516734 Q170572 Q57276 Q271458 Q1356530 Q232837 Q258064 Q329456 Q233428 Q1964578 Q369485 Q456055 Q57276 Q170530 Q982795 Q719556 Q163286 Q108935 Q712180 Q233466 Q39958 Q311314 Q4897497 Q724804 Q234564 Q3330735 Q461238 Q3339792 Q57276 Q575448 Q439105 Q2978725 Q460457 Q431362 Q230686 Q57276 Q1356690 Q95026 Q235302 Q350255 Q309788 Q329716 Q1898632 Q57276 Q235002 Q621490 Q429963 Q302650
(Q760926,P161,c(Q502895)) (Q1544908,P161,c(Q502895)) (Q1167169,P161,c(Q502895)) (Q493807,P161,c(Q502895)) (Q960668,P161,c(Q502895)) (Q764639,P161,c(Q502895)) (Q379296,P161,c(Q502895)) (Q749569,P161,c(Q502895)) (Q3015930,P161,c(Q502895)) (Q212660,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
[ANSWERS] starred in those works of art
['Q760926', 'P161', {'concept': 'Q502895'}] ['Q1544908', 'P161', {'concept': 'Q502895'}] ['Q1167169', 'P161', {'concept': 'Q502895'}] ['Q493807', 'P161', {'concept': 'Q502895'}] ['Q960668', 'P161', {'concept': 'Q502895'}] ['Q764639', 'P161', {'concept': 'Q502895'}] ['Q379296', 'P161', {'concept': 'Q502895'}] ['Q749569', 'P161', {'concept': 'Q502895'}] ['Q3015930', 'P161', {'concept': 'Q502895'}] ['Q212660', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?n property:P161 ?a . VALUES ( ?n ) { ( resource:Q760926 ) ( resource:Q1544908 ) ( resource:Q1167169 ) } . ?a rdf:type ontology:Q502895 }
Rachel Ticotin Clifford David Kathleen Beller Bernie Rachelle Danny Aiello Ed Asner Michael Higgins Paul Newman Ken Wahl Pam Grier Miguel Piñero Michael Higgins Adam Ross Blanche Baker Melvyn Douglas Rip Torn Barbara Harris Meryl Streep Alan Alda Carrie Nye Charles Kimbrough Harold Gould Richard Boone Hume Cronyn Faye Dunaway Ann Doran Michael Higgins Deborah Kerr Kirk Douglas Michael Higgins Lisa Bonet Brownie McGhee Mickey Rourke Dann Florek Robert De Niro Pruitt Taylor Vince Charlotte Rampling Michael Higgins Kathleen Wilhoite Michael Higgins Sarah Jessica Parker David Paymer Julia Stiles Clark Gregg Matt Malloy Charles Durning Philip Seymour Hoffman Rebecca Pidgeon William H. Macy Patti LuPone John Krasinski Ricky Jay Alec Baldwin Michael Higgins Paula Prentiss Franklin Cover Katharine Ross Dee Wallace William Prince Mary Stuart Masterson Nanette Newman Peter Masterson Tina Louise Michael Higgins Sarah Jessica Parker Seth Gilliam Michael Kelly Hugh Grant Mary Steenburgen Wilford Brimley Elisabeth Moss David Call Sam Elliott Beth Fowler Dan Hedaya Erika Christensen Malcolm Barrett Jesse Bradford Nick Sandow Michael Higgins James DeBello Phyllis Somerville Clayne Crawford Kate Burton Jason Ritter Shiri Appleby Michael Higgins Kenneth Mars Shirley MacLaine Carol Kane William Forsythe Don Johnson Michael Jeter Brad Sullivan Michael Higgins Penelope Ann Miller Bob Balaban Tim Reid Tate Donovan
Meryl Streep, Kirk Douglas and Robert De Niro starred in those works of art
Meryl Streep Kirk Douglas Robert De Niro
action filter_type
action find
entity prev_answer
relation cast member
type common name
['Fort Apache, The Bronx', 'cast member', {'concept': 'common name'}] ['The Seduction of Joe Tynan', 'cast member', {'concept': 'common name'}] ['The Arrangement', 'cast member', {'concept': 'common name'}] ['Angel Heart', 'cast member', {'concept': 'common name'}] ['State and Main', 'cast member', {'concept': 'common name'}] ['The Stepford Wives', 'cast member', {'concept': 'common name'}] ['Did You Hear About the Morgans?', 'cast member', {'concept': 'common name'}] ['Swimfan', 'cast member', {'concept': 'common name'}] ['Desperate Characters', 'cast member', {'concept': 'common name'}] ['Dead Bang', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?n property:cast_member ?a . VALUES ( ?n ) { ( resource:Fort_Apache,_The_Bronx ) ( resource:The_Seduction_of_Joe_Tynan ) ( resource:The_Arrangement ) } . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q493807
P915
Q56061
USER
Which city was Angel Heart filmed on ?
(Q493807,P915,c(Q56061))
action filter_type
action find
entity Q493807
relation P915
type Q56061
['Q493807', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q493807 property:P915 ?v . ?v rdf:type ontology:Q56061 }
Angel Heart
action filter_type
action find
entity Angel Heart
relation filming location
type administrative territorial entity
['Angel Heart', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Angel_Heart property:filming_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q34404
SYSTEM
New Orleans
Q34404
(Q493807,P915,c(Q56061))
action filter_type
action find
entity Q493807
relation P915
type Q56061
Angel Heart was filmed in [ANSWER]
['Q493807', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q493807 property:P915 ?v . ?v rdf:type ontology:Q56061 }
New Orleans
Angel Heart was filmed in New Orleans
New Orleans
action filter_type
action find
entity Angel Heart
relation filming location
type administrative territorial entity
['Angel Heart', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Angel_Heart property:filming_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]