Simple Question (Direct)
Simple Question
Q41396
P1411
Q4220917
USER
Which film award was Josh Brolin nominated for ?
(Q41396,P1411,c(Q4220917))
action filter_type
action find
entity Q41396
relation P1411
type Q4220917
['Q41396', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?d WHERE { resource:Q41396 property:P1411 ?d . ?d rdf:type ontology:Q4220917 }
Josh Brolin
action filter_type
action find
entity Josh Brolin
relation nominated for
type film award
['Josh Brolin', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?d WHERE { resource:Josh_Brolin property:nominated_for ?d . ?d rdf:type ontology:film_award }
[]
film award
Q106291
SYSTEM
Academy Award for Best Supporting Actor
Q106291
(Q41396,P1411,c(Q4220917))
action filter_type
action find
entity Q41396
relation P1411
type Q4220917
Josh Brolin was nominated for [ANSWER]
['Q41396', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?d WHERE { resource:Q41396 property:P1411 ?d . ?d rdf:type ontology:Q4220917 }
Academy Award for Best Supporting Actor
Josh Brolin was nominated for Academy Award for Best Supporting Actor
Academy Award for Best Supporting Actor
action filter_type
action find
entity Josh Brolin
relation nominated for
type film award
['Josh Brolin', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?d WHERE { resource:Josh_Brolin property:nominated_for ?d . ?d rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41396
P175
Q6619679
USER
Which fictional humanoid presented Josh Brolin ?
(c(Q6619679),P175,Q41396)
action filter_type
action find_reverse
entity Q41396
relation P175
type Q6619679
[{'concept': 'Q6619679'}, 'P175', 'Q41396']
SELECT DISTINCT ?m WHERE { ?m property:P175 resource:Q41396 . ?m rdf:type ontology:Q6619679 }
Josh Brolin
action filter_type
action find_reverse
entity Josh Brolin
relation performer
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'performer', 'Josh Brolin']
SELECT DISTINCT ?m WHERE { ?m property:performer resource:Josh_Brolin . ?m rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q2071077
SYSTEM
Agent K
Q2071077
(c(Q6619679),P175,Q41396)
action filter_type
action find_reverse
entity Q41396
relation P175
type Q6619679
[ANSWER] presented Josh Brolin
[{'concept': 'Q6619679'}, 'P175', 'Q41396']
SELECT DISTINCT ?m WHERE { ?m property:P175 resource:Q41396 . ?m rdf:type ontology:Q6619679 }
Agent K
Agent K presented Josh Brolin
Agent K
action filter_type
action find_reverse
entity Josh Brolin
relation performer
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'performer', 'Josh Brolin']
SELECT DISTINCT ?m WHERE { ?m property:performer resource:Josh_Brolin . ?m rdf:type ontology:fictional_humanoid }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41396
P22
Q502895
USER
Which person was the father of that one ?
(Q2071077,P22,c(Q502895))
action filter_type
action find
entity Q41396
relation P22
type Q502895
['Q2071077', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q41396 property:P22 ?w . ?w rdf:type ontology:Q502895 }
Josh Brolin
action filter_type
action find
entity Josh Brolin
relation father
type common name
['Agent K', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Josh_Brolin property:father ?w . ?w rdf:type ontology:common_name }
[]
common name
Q315051
SYSTEM
James Brolin
Q315051
(Q2071077,P22,c(Q502895))
action filter_type
action find
entity Q41396
relation P22
type Q502895
[ANSWER] was the father of that one
['Q2071077', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q41396 property:P22 ?w . ?w rdf:type ontology:Q502895 }
James Brolin
James Brolin was the father of that one
James Brolin
action filter_type
action find
entity Josh Brolin
relation father
type common name
['Agent K', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Josh_Brolin property:father ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can approximately 2203 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2203
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?d = 2203 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2203
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?d = 2203 ) }
[]
musical instrument common name
SYSTEM
5
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2203
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?d = 2203 ) }
bass guitar trumpet cello organ drum kit
5
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2203
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?d = 2203 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41396
P26
Q502895
USER
Which people are the spouses of Josh Brolin ?
(Q41396,P26,c(Q502895))
action filter_type
action find
entity Q41396
relation P26
type Q502895
['Q41396', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q41396 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Josh Brolin
action filter_type
action find
entity Josh Brolin
relation spouse
type common name
['Josh Brolin', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Josh_Brolin property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q255070 Q21042222
SYSTEM
Diane Lane, Alice Adair
Q255070 Q21042222
(Q41396,P26,c(Q502895))
action filter_type
action find
entity Q41396
relation P26
type Q502895
[ANSWERS] are the spouses of Josh Brolin
['Q41396', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q41396 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Diane Lane Alice Adair
Diane Lane and Alice Adair are the spouses of Josh Brolin
Diane Lane Alice Adair
action filter_type
action find
entity Josh Brolin
relation spouse
type common name
['Josh Brolin', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Josh_Brolin property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q255070 Q21042222
P26
Q502895
USER
Which people have Diane Lane and Alice Adair as spouse ?
(c(Q502895),P26,Q255070) (c(Q502895),P26,Q21042222)
action union
action filter_type
action find
entity Q255070
relation P26
type Q502895
action filter_type
action find
entity Q21042222
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q255070'] [{'concept': 'Q502895'}, 'P26', 'Q21042222']
SELECT DISTINCT ?e WHERE { { resource:Q255070 property:P26 ?e . ?e rdf:type ontology:Q502895 } UNION { ?e rdf:type ontology:Q502895 . resource:Q21042222 property:P26 ?e } }
Diane Lane Alice Adair
action union
action filter_type
action find
entity Diane Lane
relation spouse
type common name
action filter_type
action find
entity Alice Adair
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Diane Lane'] [{'concept': 'common name'}, 'spouse', 'Alice Adair']
SELECT DISTINCT ?e WHERE { { resource:Diane_Lane property:spouse ?e . ?e rdf:type ontology:common_name } UNION { ?e rdf:type ontology:common_name . resource:Alice_Adair property:spouse ?e } }
[]
common name
Q41396 Q105158 Q41396
SYSTEM
Christopher Lambert for 2nd, Josh Brolin for 1st, 3rd
Q41396 Q105158 Q41396
(c(Q502895),P26,Q255070) (c(Q502895),P26,Q21042222)
action union
action filter_type
action find
entity Q255070
relation P26
type Q502895
action filter_type
action find
entity Q21042222
relation P26
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q255070'] [{'concept': 'Q502895'}, 'P26', 'Q21042222']
SELECT DISTINCT ?e WHERE { { resource:Q255070 property:P26 ?e . ?e rdf:type ontology:Q502895 } UNION { ?e rdf:type ontology:Q502895 . resource:Q21042222 property:P26 ?e } }
Josh Brolin Christopher Lambert Josh Brolin
Josh Brolin, Christopher Lambert and Josh Brolin have Diane Lane and Alice Adair as spouse
Josh Brolin Christopher Lambert Josh Brolin
action union
action filter_type
action find
entity Diane Lane
relation spouse
type common name
action filter_type
action find
entity Alice Adair
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Diane Lane'] [{'concept': 'common name'}, 'spouse', 'Alice Adair']
SELECT DISTINCT ?e WHERE { { resource:Diane_Lane property:spouse ?e . ?e rdf:type ontology:common_name } UNION { ?e rdf:type ontology:common_name . resource:Alice_Adair property:spouse ?e } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q105158
P1346
Q618779
USER
Where was Christopher Lambert decalred as a champion ?
(c(Q618779),P1346,Q105158)
action filter_type
action find_reverse
entity Q105158
relation P1346
type Q618779
[{'concept': 'Q618779'}, 'P1346', 'Q105158']
SELECT DISTINCT ?p WHERE { ?p property:P1346 resource:Q105158 . ?p rdf:type ontology:Q618779 }
Christopher Lambert
action filter_type
action find_reverse
entity Christopher Lambert
relation winner
type award
[{'concept': 'award'}, 'winner', 'Christopher Lambert']
SELECT DISTINCT ?p WHERE { ?p property:winner resource:Christopher_Lambert . ?p rdf:type ontology:award }
[]
award
Q900494
SYSTEM
César Award for Best Actor
Q900494
(c(Q618779),P1346,Q105158)
action filter_type
action find_reverse
entity Q105158
relation P1346
type Q618779
[ANSWER] Christopher Lambert was decalred as a champion
[{'concept': 'Q618779'}, 'P1346', 'Q105158']
SELECT DISTINCT ?p WHERE { ?p property:P1346 resource:Q105158 . ?p rdf:type ontology:Q618779 }
César Award for Best Actor
César Award for Best Actor Christopher Lambert was decalred as a champion
César Award for Best Actor
action filter_type
action find_reverse
entity Christopher Lambert
relation winner
type award
[{'concept': 'award'}, 'winner', 'Christopher Lambert']
SELECT DISTINCT ?p WHERE { ?p property:winner resource:Christopher_Lambert . ?p rdf:type ontology:award }
[]