Simple Question (Direct)
Simple Question
Q651196
P161
Q502895
USER
Which people starred in Hellboy II: The Golden Army ?
(Q651196,P161,c(Q502895))
action filter_type
action find
entity Q651196
relation P161
type Q502895
['Q651196', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q651196 property:P161 ?u . ?u rdf:type ontology:Q502895 }
Hellboy II: The Golden Army
action filter_type
action find
entity Hellboy II: The Golden Army
relation cast member
type common name
['Hellboy II: The Golden Army', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Hellboy_II:_The_Golden_Army property:cast_member ?u . ?u rdf:type ontology:common_name }
[]
common name
Q188492 Q200405 Q220698
SYSTEM
Seth MacFarlane, John Hurt, Ron Perlman
Q320204 Q200405 Q433672 Q3644509 Q264748 Q220698 Q4914 Q911462 Q188492 Q461309 Q3180874 Q929933
(Q651196,P161,c(Q502895))
action filter_type
action find
entity Q651196
relation P161
type Q502895
[ANSWERS] starred in Hellboy II: The Golden Army
['Q651196', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q651196 property:P161 ?u . ?u rdf:type ontology:Q502895 }
Jeffrey Tambor John Hurt Anna Walton Brian Steele Selma Blair Ron Perlman Jimmy Kimmel Luke Goss Seth MacFarlane Doug Jones John Alexander Roy Dotrice
Seth MacFarlane, John Hurt and Ron Perlman starred in Hellboy II: The Golden Army
Seth MacFarlane John Hurt Ron Perlman
action filter_type
action find
entity Hellboy II: The Golden Army
relation cast member
type common name
['Hellboy II: The Golden Army', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Hellboy_II:_The_Golden_Army property:cast_member ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q651196
P840
Q56061
USER
Which narrative locations are Hellboy II: The Golden Army set in ?
(Q651196,P840,c(Q56061))
action filter_type
action find
entity Q651196
relation P840
type Q56061
['Q651196', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q651196 property:P840 ?m . ?m rdf:type ontology:Q56061 }
Hellboy II: The Golden Army
action filter_type
action find
entity Hellboy II: The Golden Army
relation narrative location
type administrative territorial entity
['Hellboy II: The Golden Army', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Hellboy_II:_The_Golden_Army property:narrative_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q26
SYSTEM
New York City, Northern Ireland
Q60 Q26
(Q651196,P840,c(Q56061))
action filter_type
action find
entity Q651196
relation P840
type Q56061
[ANSWERS] are Hellboy II: The Golden Army set in
['Q651196', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q651196 property:P840 ?m . ?m rdf:type ontology:Q56061 }
New York City Northern Ireland
New York City and Northern Ireland are Hellboy II: The Golden Army set in
New York City Northern Ireland
action filter_type
action find
entity Hellboy II: The Golden Army
relation narrative location
type administrative territorial entity
['Hellboy II: The Golden Army', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Hellboy_II:_The_Golden_Army property:narrative_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q60 Q26
P17
Q15617994
USER
Which administrative territories are New York City and Northern Ireland a part of ?
(Q60,P17,c(Q15617994)) (Q26,P17,c(Q15617994))
action union
action filter_type
action find
entity Q60
relation P17
type Q15617994
action filter_type
action find
entity Q26
relation P17
type Q15617994
['Q60', 'P17', {'concept': 'Q15617994'}] ['Q26', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { resource:Q26 property:P17 ?o . ?o rdf:type ontology:Q15617994 } UNION { resource:Q60 property:P17 ?o . ?o rdf:type ontology:Q15617994 } }
New York City Northern Ireland
action union
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Northern Ireland
relation country
type designation for an administrative territorial entity
['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Northern Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { resource:Northern_Ireland property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:New_York_City property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
(Q60,P17,c(Q15617994)) (Q26,P17,c(Q15617994))
action union
action filter_type
action find
entity Q60
relation P17
type Q15617994
action filter_type
action find
entity Q26
relation P17
type Q15617994
Are [ANSWERS] are New York City and Northern Ireland a part of
['Q60', 'P17', {'concept': 'Q15617994'}] ['Q26', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { resource:Q26 property:P17 ?o . ?o rdf:type ontology:Q15617994 } UNION { resource:Q60 property:P17 ?o . ?o rdf:type ontology:Q15617994 } }
United States of America United Kingdom
Are United States of America and United Kingdom are New York City and Northern Ireland a part of
United States of America United Kingdom
action union
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Northern Ireland
relation country
type designation for an administrative territorial entity
['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Northern Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { resource:Northern_Ireland property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:New_York_City property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q30 Q145
P6
Q502895
USER
What people are United States of America and United Kingdom the head of goverment of ?
(Q30,P6,c(Q502895)) (Q145,P6,c(Q502895))
action union
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q145
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}] ['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { resource:Q30 property:P6 ?n . ?n rdf:type ontology:Q502895 } UNION { resource:Q145 property:P6 ?n . ?n rdf:type ontology:Q502895 } }
United States of America United Kingdom
action union
action filter_type
action find
entity United States of America
relation head of government
type common name
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}] ['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { resource:United_States_of_America property:head_of_government ?n . ?n rdf:type ontology:common_name } UNION { resource:United_Kingdom property:head_of_government ?n . ?n rdf:type ontology:common_name } }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891 Q192 Q264766
(Q30,P6,c(Q502895)) (Q145,P6,c(Q502895))
action union
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q145
relation P6
type Q502895
United States of America and United Kingdom the head of goverment of are President [ANSWERS]
['Q30', 'P6', {'concept': 'Q502895'}] ['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { resource:Q30 property:P6 ?n . ?n rdf:type ontology:Q502895 } UNION { resource:Q145 property:P6 ?n . ?n rdf:type ontology:Q502895 } }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk David Cameron Theresa May
United States of America and United Kingdom the head of goverment of are President Barack Obama, Dwight D. Eisenhower and Donald Trump
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find
entity United States of America
relation head of government
type common name
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}] ['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { resource:United_States_of_America property:head_of_government ?n . ?n rdf:type ontology:common_name } UNION { resource:United_Kingdom property:head_of_government ?n . ?n rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22686
P710
Q1656682
USER
What event did that person particiate in ?
(c(Q1656682),P710,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P710
type Q1656682
[{'concept': 'Q1656682'}, 'P710', 'Q22686']
SELECT DISTINCT ?i WHERE { ?i property:P710 resource:Q22686 . ?i rdf:type ontology:Q1656682 }
Donald Trump
action filter_type
action find_reverse
entity Donald Trump
relation participant
type event
[{'concept': 'event'}, 'participant', 'Donald Trump']
SELECT DISTINCT ?i WHERE { ?i property:participant resource:Donald_Trump . ?i rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q22686
SYSTEM
Did you mean Donald Trump ?
Q76 Q9916 Q22686
(c(Q1656682),P710,Q76) (c(Q1656682),P710,Q9916) (c(Q1656682),P710,Q22686)
[ANSWER]
[{'concept': 'Q1656682'}, 'P710', 'Q76'] [{'concept': 'Q1656682'}, 'P710', 'Q9916'] [{'concept': 'Q1656682'}, 'P710', 'Q22686']
SELECT DISTINCT ?i WHERE { ?i property:P710 resource:Q22686 . ?i rdf:type ontology:Q1656682 }
Barack Obama Dwight D. Eisenhower Donald Trump
Did you mean Donald Trump ?
Donald Trump
[{'concept': 'event'}, 'participant', 'Barack Obama'] [{'concept': 'event'}, 'participant', 'Dwight D. Eisenhower'] [{'concept': 'event'}, 'participant', 'Donald Trump']
SELECT DISTINCT ?i WHERE { ?i property:participant resource:Donald_Trump . ?i rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1656682),P710,Q22686)
[{'concept': 'Q1656682'}, 'P710', 'Q22686']
[{'concept': 'event'}, 'participant', 'Donald Trump']
[]
Q27824398
SYSTEM
inauguration of Donald Trump
Q27824398
(c(Q1656682),P710,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P710
type Q1656682
That person particiated the [ANSWER]
[{'concept': 'Q1656682'}, 'P710', 'Q22686']
SELECT DISTINCT ?i WHERE { ?i property:P710 resource:Q22686 . ?i rdf:type ontology:Q1656682 }
inauguration of Donald Trump
That person particiated the inauguration of Donald Trump
inauguration of Donald Trump
action filter_type
action find_reverse
entity Donald Trump
relation participant
type event
[{'concept': 'event'}, 'participant', 'Donald Trump']
SELECT DISTINCT ?i WHERE { ?i property:participant resource:Donald_Trump . ?i rdf:type ontology:event }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q27824398 Q27523862
P793
Q502895
USER
Is that one a significant event of Said Brih ?
(Q27523862,P793,Q27824398)
action is_in
entity Q27523862
action find
entity Q27824398
relation P793
['Q27523862', 'P793', 'Q27824398']
ASK WHERE { resource:Q27824398 property:P793 resource:Q27523862 }
inauguration of Donald Trump Said Brih
action is_in
entity Said Brih
action find
entity inauguration of Donald Trump
relation significant event
['Said Brih', 'significant event', 'inauguration of Donald Trump']
ASK WHERE { resource:inauguration_of_Donald_Trump property:significant_event resource:Said_Brih }
[]
common name
SYSTEM
NO
(Q27523862,P793,Q27824398)
action is_in
entity Q27523862
action find
entity Q27824398
relation P793
[ANSWER]
['Q27523862', 'P793', 'Q27824398']
ASK WHERE { resource:Q27824398 property:P793 resource:Q27523862 }
No
action is_in
entity Said Brih
action find
entity inauguration of Donald Trump
relation significant event
['Said Brih', 'significant event', 'inauguration of Donald Trump']
ASK WHERE { resource:inauguration_of_Donald_Trump property:significant_event resource:Said_Brih }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16858002
P608
Q1656682 Q502895
USER
How many people were exhibited at around the same number of events as Anne Mee ?
(c(Q502895),P608,c(Q1656682))
action count
action approx
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_type
action find
entity Q16858002
relation P608
type Q502895
[{'concept': 'Q502895'}, 'P608', {'concept': 'Q1656682'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?z ) WHERE { ?i rdf:type ontology:Q502895 . ?o rdf:type ontology:Q1656682 . ?i property:P608 ?o } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q16858002 property:P608 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?z = ?v ) }
Anne Mee
action count
action approx
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_type
action find
entity Anne Mee
relation exhibition history
type common name
[{'concept': 'common name'}, 'exhibition history', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?z ) WHERE { ?i rdf:type ontology:common_name . ?o rdf:type ontology:event . ?i property:exhibition_history ?o } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Anne_Mee property:exhibition_history ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?z = ?v ) }
[]
event common name
SYSTEM
33
Q70006 Q17314881 Q15734263 Q15734265 Q6196481 Q4945678 Q16004451 Q4648360 Q7649008 Q16858002 Q15991813 Q6990118 Q5671224 Q17625628 Q16005428 Q27505608 Q5248733 Q2824894 Q1964408 Q15734237 Q2965423 Q5040332 Q6687160 Q3289592 Q5375139 Q9015308 Q805807 Q16080418 Q16121375 Q15527965 Q15873898 Q55192 Q16968866
(c(Q502895),P608,c(Q1656682))
action count
action approx
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_type
action find
entity Q16858002
relation P608
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P608', {'concept': 'Q1656682'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?z ) WHERE { ?i rdf:type ontology:Q502895 . ?o rdf:type ontology:Q1656682 . ?i property:P608 ?o } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q16858002 property:P608 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?z = ?v ) }
Lotte Jacobi René Izaure Johanna Bleuland van Oordt Adri Bleuland van Oordt Jim Love Martha Edelheit Jennifer Bolande A. S. Baylinson Susie Bootja Bootja Napaltjarri Anne Mee Judie Bamber Nellie Mae Rowe Pablo Borges Delgado Deborah De Robertis Andrea Bowers Wolfgang Sellinger Manuel Ocampo Adolphe Péterelle Nan Hoover Tony van Alphen Christian Lhopital Carl Holty Louis Ferstadt Moniek Toebosch Ena Swansea Juan Carlos Alom Balto Alyce Frank Judith Lowry Margaretha Roosenboom Chrisje van der Willigen Gertrude Abercrombie Lydia Schouten
33
action count
action approx
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_type
action find
entity Anne Mee
relation exhibition history
type common name
[{'concept': 'common name'}, 'exhibition history', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?z ) WHERE { ?i rdf:type ontology:common_name . ?o rdf:type ontology:event . ?i property:exhibition_history ?o } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Anne_Mee property:exhibition_history ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?z = ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q5040332
P608
Q1656682 Q502895
USER
And how about Carl Holty?
(c(Q502895),P608,c(Q1656682))
action count
action approx
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_type
action find
entity Q5040332
relation P608
type Q502895
[{'concept': 'Q502895'}, 'P608', {'concept': 'Q1656682'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Q5040332 property:P608 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?x ) WHERE { ?v rdf:type ontology:Q502895 . ?z rdf:type ontology:Q1656682 . ?v property:P608 ?z } GROUP BY ?v } }
Carl Holty
action count
action approx
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_type
action find
entity Carl Holty
relation exhibition history
type common name
[{'concept': 'common name'}, 'exhibition history', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Carl_Holty property:exhibition_history ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?x ) WHERE { ?v rdf:type ontology:common_name . ?z rdf:type ontology:event . ?v property:exhibition_history ?z } GROUP BY ?v } }
[]
event common name
SYSTEM
33
Q70006 Q17314881 Q15734263 Q15734265 Q6196481 Q4945678 Q16004451 Q4648360 Q7649008 Q16858002 Q15991813 Q6990118 Q5671224 Q17625628 Q16005428 Q27505608 Q5248733 Q2824894 Q1964408 Q15734237 Q2965423 Q5040332 Q6687160 Q3289592 Q5375139 Q9015308 Q805807 Q16080418 Q16121375 Q15527965 Q15873898 Q55192 Q16968866
(c(Q502895),P608,c(Q1656682))
action count
action approx
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action count
action filter_type
action find
entity Q5040332
relation P608
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P608', {'concept': 'Q1656682'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Q5040332 property:P608 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?x ) WHERE { ?v rdf:type ontology:Q502895 . ?z rdf:type ontology:Q1656682 . ?v property:P608 ?z } GROUP BY ?v } }
Lotte Jacobi René Izaure Johanna Bleuland van Oordt Adri Bleuland van Oordt Jim Love Martha Edelheit Jennifer Bolande A. S. Baylinson Susie Bootja Bootja Napaltjarri Anne Mee Judie Bamber Nellie Mae Rowe Pablo Borges Delgado Deborah De Robertis Andrea Bowers Wolfgang Sellinger Manuel Ocampo Adolphe Péterelle Nan Hoover Tony van Alphen Christian Lhopital Carl Holty Louis Ferstadt Moniek Toebosch Ena Swansea Juan Carlos Alom Balto Alyce Frank Judith Lowry Margaretha Roosenboom Chrisje van der Willigen Gertrude Abercrombie Lydia Schouten
33
action count
action approx
action find_tuple_counts
relation exhibition history
type common name
type event
action count
action filter_type
action find
entity Carl Holty
relation exhibition history
type common name
[{'concept': 'common name'}, 'exhibition history', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Carl_Holty property:exhibition_history ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?x ) WHERE { ?v rdf:type ontology:common_name . ?z rdf:type ontology:event . ?v property:exhibition_history ?z } GROUP BY ?v } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q76
P551
Q3947
USER
Where did Barack Obama live ?
(Q76,P551,c(Q3947))
action filter_type
action find
entity Q76
relation P551
type Q3947
['Q76', 'P551', {'concept': 'Q3947'}]
SELECT DISTINCT ?s WHERE { resource:Q76 property:P551 ?s . ?s rdf:type ontology:Q3947 }
Barack Obama
action filter_type
action find
entity Barack Obama
relation residence
type house
['Barack Obama', 'residence', {'concept': 'house'}]
SELECT DISTINCT ?s WHERE { resource:Barack_Obama property:residence ?s . ?s rdf:type ontology:house }
[]
house
Q35525
SYSTEM
White House
Q35525
(Q76,P551,c(Q3947))
action filter_type
action find
entity Q76
relation P551
type Q3947
Barack Obama lived in [ANSWER]
['Q76', 'P551', {'concept': 'Q3947'}]
SELECT DISTINCT ?s WHERE { resource:Q76 property:P551 ?s . ?s rdf:type ontology:Q3947 }
White House
Barack Obama lived in White House
White House
action filter_type
action find
entity Barack Obama
relation residence
type house
['Barack Obama', 'residence', {'concept': 'house'}]
SELECT DISTINCT ?s WHERE { resource:Barack_Obama property:residence ?s . ?s rdf:type ontology:house }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q76
Q56061
USER
And which administrative territory?
(Q76,P551,c(Q56061))
action filter_type
action find
entity Q76
relation P551
type Q56061
['Q76', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q76 property:P551 ?x }
Barack Obama
action filter_type
action find
entity Barack Obama
relation residence
type administrative territorial entity
['Barack Obama', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Barack_Obama property:residence ?x }
[]
administrative territorial entity
Q65 Q60 Q1297
SYSTEM
Los Angeles, New York City, Chicago
Q3630 Q65 Q60 Q1297
(Q76,P551,c(Q56061))
action filter_type
action find
entity Q76
relation P551
type Q56061
[ANSWERS]
['Q76', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q76 property:P551 ?x }
Jakarta Los Angeles New York City Chicago
Los Angeles New York City Chicago
action filter_type
action find
entity Barack Obama
relation residence
type administrative territorial entity
['Barack Obama', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Barack_Obama property:residence ?x }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1191093
P840
Q838948
USER
Do Harry and Tonto have their narrative set in those administrative territories ?
(Q1191093,P840,Q65) (Q1191093,P840,Q60) (Q1191093,P840,Q1297)
action is_in
entity prev_answer
action find
entity Q1191093
relation P840
['Q1191093', 'P840', 'Q65'] ['Q1191093', 'P840', 'Q60'] ['Q1191093', 'P840', 'Q1297']
ASK WHERE { VALUES ( ?q ) { ( resource:Q3630 ) ( resource:Q65 ) ( resource:Q60 ) } . resource:Q1191093 property:P840 ?q }
Harry and Tonto
action is_in
entity prev_answer
action find
entity Harry and Tonto
relation narrative location
['Harry and Tonto', 'narrative location', 'Los Angeles'] ['Harry and Tonto', 'narrative location', 'New York City'] ['Harry and Tonto', 'narrative location', 'Chicago']
ASK WHERE { VALUES ( ?q ) { ( resource:Jakarta ) ( resource:Los_Angeles ) ( resource:New_York_City ) } . resource:Harry_and_Tonto property:narrative_location ?q }
[]
work of art
SYSTEM
YES
(Q1191093,P840,Q65) (Q1191093,P840,Q60) (Q1191093,P840,Q1297)
action is_in
entity prev_answer
action find
entity Q1191093
relation P840
[ANSWER]
['Q1191093', 'P840', 'Q65'] ['Q1191093', 'P840', 'Q60'] ['Q1191093', 'P840', 'Q1297']
ASK WHERE { VALUES ( ?q ) { ( resource:Q3630 ) ( resource:Q65 ) ( resource:Q60 ) } . resource:Q1191093 property:P840 ?q }
Yes
action is_in
entity prev_answer
action find
entity Harry and Tonto
relation narrative location
['Harry and Tonto', 'narrative location', 'Los Angeles'] ['Harry and Tonto', 'narrative location', 'New York City'] ['Harry and Tonto', 'narrative location', 'Chicago']
ASK WHERE { VALUES ( ?q ) { ( resource:Jakarta ) ( resource:Los_Angeles ) ( resource:New_York_City ) } . resource:Harry_and_Tonto property:narrative_location ?q }
[]