Simple Question (Direct)
Simple Question
Q2267671
P26
Q502895
USER
Who is married to Rebecca Herbst ?
(Q2267671,P26,c(Q502895))
action filter_type
action find
entity Q2267671
relation P26
type Q502895
['Q2267671', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2267671 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Rebecca Herbst
action filter_type
action find
entity Rebecca Herbst
relation spouse
type common name
['Rebecca Herbst', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Rebecca_Herbst property:spouse ?m . ?m rdf:type ontology:common_name }
[]
common name
Q6834138
SYSTEM
Michael Saucedo
Q6834138
(Q2267671,P26,c(Q502895))
action filter_type
action find
entity Q2267671
relation P26
type Q502895
[ANSWER] is married to Rebecca Herbst
['Q2267671', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2267671 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Michael Saucedo
Michael Saucedo is married to Rebecca Herbst
Michael Saucedo
action filter_type
action find
entity Rebecca Herbst
relation spouse
type common name
['Rebecca Herbst', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Rebecca_Herbst property:spouse ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2267671
P161
Q15416
USER
Which television programs do Rebecca Herbst star in ?
(c(Q15416),P161,Q2267671)
action filter_type
action find_reverse
entity Q2267671
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q2267671']
SELECT DISTINCT ?g WHERE { ?g property:P161 resource:Q2267671 . ?g rdf:type ontology:Q15416 }
Rebecca Herbst
action filter_type
action find_reverse
entity Rebecca Herbst
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Rebecca Herbst']
SELECT DISTINCT ?g WHERE { ?g property:cast_member resource:Rebecca_Herbst . ?g rdf:type ontology:television_program }
[]
television program
Q7572284 Q1136370
SYSTEM
Space Cases, General Hospital
Q7572284 Q1136370
(c(Q15416),P161,Q2267671)
action filter_type
action find_reverse
entity Q2267671
relation P161
type Q15416
Rebecca Herbst star [ANSWERS]
[{'concept': 'Q15416'}, 'P161', 'Q2267671']
SELECT DISTINCT ?g WHERE { ?g property:P161 resource:Q2267671 . ?g rdf:type ontology:Q15416 }
Space Cases General Hospital
Rebecca Herbst star Space Cases and General Hospital
Space Cases General Hospital
action filter_type
action find_reverse
entity Rebecca Herbst
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Rebecca Herbst']
SELECT DISTINCT ?g WHERE { ?g property:cast_member resource:Rebecca_Herbst . ?g rdf:type ontology:television_program }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7572284
P449
Q1616075
USER
Which network was the first to air that television program ?
(Q7572284,P449,c(Q1616075))
action filter_type
action find
entity Q7572284
relation P449
type Q1616075
['Q7572284', 'P449', {'concept': 'Q1616075'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1616075 . resource:Q7572284 property:P449 ?b }
Space Cases
action filter_type
action find
entity Space Cases
relation original network
type television station
['Space Cases', 'original network', {'concept': 'television station'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:television_station . resource:Space_Cases property:original_network ?b }
[]
television station
Clarification for simple ques.
Q7572284
SYSTEM
Did you mean Space Cases ?
Q7572284 Q1136370
(Q7572284,P449,c(Q1616075)) (Q1136370,P449,c(Q1616075))
[ANSWER]
['Q7572284', 'P449', {'concept': 'Q1616075'}] ['Q1136370', 'P449', {'concept': 'Q1616075'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1616075 . resource:Q7572284 property:P449 ?b }
Space Cases General Hospital
Did you mean Space Cases ?
Space Cases
['Space Cases', 'original network', {'concept': 'television station'}] ['General Hospital', 'original network', {'concept': 'television station'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:television_station . resource:Space_Cases property:original_network ?b }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7572284,P449,c(Q1616075))
['Q7572284', 'P449', {'concept': 'Q1616075'}]
['Space Cases', 'original network', {'concept': 'television station'}]
[]
Q154958
SYSTEM
Nickelodeon
Q154958
(Q7572284,P449,c(Q1616075))
action filter_type
action find
entity Q7572284
relation P449
type Q1616075
[ANSWER] was the first to air that television program
['Q7572284', 'P449', {'concept': 'Q1616075'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1616075 . resource:Q7572284 property:P449 ?b }
Nickelodeon
Nickelodeon was the first to air that television program
Nickelodeon
action filter_type
action find
entity Space Cases
relation original network
type television station
['Space Cases', 'original network', {'concept': 'television station'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:television_station . resource:Space_Cases property:original_network ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that television station belong to ?
(Q154958,P17,c(Q15617994))
action count
action filter_type
action find
entity Q154958
relation P17
type Q15617994
['Q154958', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q154958 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Nickelodeon
relation country
type designation for an administrative territorial entity
['Nickelodeon', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Nickelodeon property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q154958,P17,c(Q15617994))
action count
action filter_type
action find
entity Q154958
relation P17
type Q15617994
[ANSWER]
['Q154958', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q154958 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Nickelodeon
relation country
type designation for an administrative territorial entity
['Nickelodeon', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Nickelodeon property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1136370
P361
Q6619679
USER
Which fictional humanoid is a part of General Hospital ?
(c(Q6619679),P361,Q1136370)
action filter_type
action find_reverse
entity Q1136370
relation P361
type Q6619679
[{'concept': 'Q6619679'}, 'P361', 'Q1136370']
SELECT DISTINCT ?p WHERE { ?p property:P361 resource:Q1136370 . ?p rdf:type ontology:Q6619679 }
General Hospital
action filter_type
action find_reverse
entity General Hospital
relation part of
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'part of', 'General Hospital']
SELECT DISTINCT ?p WHERE { ?p property:part_of resource:General_Hospital . ?p rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q16210649
SYSTEM
Lucy Coe
Q16210649
(c(Q6619679),P361,Q1136370)
action filter_type
action find_reverse
entity Q1136370
relation P361
type Q6619679
[ANSWER] is a part of General Hospital
[{'concept': 'Q6619679'}, 'P361', 'Q1136370']
SELECT DISTINCT ?p WHERE { ?p property:P361 resource:Q1136370 . ?p rdf:type ontology:Q6619679 }
Lucy Coe
Lucy Coe is a part of General Hospital
Lucy Coe
action filter_type
action find_reverse
entity General Hospital
relation part of
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'part of', 'General Hospital']
SELECT DISTINCT ?p WHERE { ?p property:part_of resource:General_Hospital . ?p rdf:type ontology:fictional_humanoid }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16210649
P175
Q502895
USER
Which person was performed by that fictional humanoid ?
(Q16210649,P175,c(Q502895))
action filter_type
action find
entity Q16210649
relation P175
type Q502895
['Q16210649', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q16210649 property:P175 ?d . ?d rdf:type ontology:Q502895 }
Lucy Coe
action filter_type
action find
entity Lucy Coe
relation performer
type common name
['Lucy Coe', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Lucy_Coe property:performer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q6709055
SYSTEM
Lynn Herring
Q6709055
(Q16210649,P175,c(Q502895))
action filter_type
action find
entity Q16210649
relation P175
type Q502895
[ANSWER] was performed by that fictional humanoid
['Q16210649', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q16210649 property:P175 ?d . ?d rdf:type ontology:Q502895 }
Lynn Herring
Lynn Herring was performed by that fictional humanoid
Lynn Herring
action filter_type
action find
entity Lucy Coe
relation performer
type common name
['Lucy Coe', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Lucy_Coe property:performer ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?d ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?v = ?d ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?d ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?v = ?d ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?d ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?v = ?d ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?d ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?c } } . { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?v = ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6349962 Q7572284
P161
Q502895
USER
Which people starred in Space Cases or Kala Pani ?
OR((Q7572284,P161,c(Q502895)), (Q6349962,P161,c(Q502895)))
action filter_type
action union
action find
entity Q7572284
relation P161
action find
entity Q6349962
relation P161
type Q502895
{'OR': [['Q7572284', 'P161', {'concept': 'Q502895'}], ['Q6349962', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7572284 property:P161 ?g } UNION { resource:Q6349962 property:P161 ?g } } . ?g rdf:type ontology:Q502895 }
Kala Pani Space Cases
action filter_type
action union
action find
entity Space Cases
relation cast member
action find
entity Kala Pani
relation cast member
type common name
{'OR': [['Space Cases', 'cast member', {'concept': 'common name'}], ['Kala Pani', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Space_Cases property:cast_member ?g } UNION { resource:Kala_Pani property:cast_member ?g } } . ?g rdf:type ontology:common_name }
[]
common name
Q234656 Q4764597 Q2926155 Q5047639 Q1406833 Q6437873 Q320115 Q2267671 Q36881
SYSTEM
Jewel Staite, Anik Matern, Nalini Jaywant, Cary Lawrence, Walter Emanuel Jones, Kristian Ayre, Dev Anand, Rebecca Herbst, Madhubala
Q234656 Q4764597 Q2926155 Q5047639 Q1406833 Q6437873 Q320115 Q2267671 Q36881
OR((Q7572284,P161,c(Q502895)), (Q6349962,P161,c(Q502895)))
action filter_type
action union
action find
entity Q7572284
relation P161
action find
entity Q6349962
relation P161
type Q502895
[ANSWERS] starred in Space Cases or Kala Pani
{'OR': [['Q7572284', 'P161', {'concept': 'Q502895'}], ['Q6349962', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7572284 property:P161 ?g } UNION { resource:Q6349962 property:P161 ?g } } . ?g rdf:type ontology:Q502895 }
Jewel Staite Anik Matern Nalini Jaywant Cary Lawrence Walter Emanuel Jones Kristian Ayre Dev Anand Rebecca Herbst Madhubala
Jewel Staite, Anik Matern, Nalini Jaywant, Cary Lawrence, Walter Emanuel Jones, Kristian Ayre, Dev Anand, Rebecca Herbst and Madhubala starred in Space Cases or Kala Pani
Jewel Staite Anik Matern Nalini Jaywant Cary Lawrence Walter Emanuel Jones Kristian Ayre Dev Anand Rebecca Herbst Madhubala
action filter_type
action union
action find
entity Space Cases
relation cast member
action find
entity Kala Pani
relation cast member
type common name
{'OR': [['Space Cases', 'cast member', {'concept': 'common name'}], ['Kala Pani', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Space_Cases property:cast_member ?g } UNION { resource:Kala_Pani property:cast_member ?g } } . ?g rdf:type ontology:common_name }
[]