Simple Question (Direct)
Simple Question
Q10264518
P915
Q56061
USER
Which locations were De Pernas pro Ar 2 filmed ?
(Q10264518,P915,c(Q56061))
action filter_type
action find
entity Q10264518
relation P915
type Q56061
['Q10264518', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q10264518 property:P915 ?k . ?k rdf:type ontology:Q56061 }
De Pernas pro Ar 2
action filter_type
action find
entity De Pernas pro Ar 2
relation filming location
type administrative territorial entity
['De Pernas pro Ar 2', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:De_Pernas_pro_Ar_2 property:filming_location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678 Q60
SYSTEM
Rio de Janeiro, New York City
Q8678 Q60
(Q10264518,P915,c(Q56061))
action filter_type
action find
entity Q10264518
relation P915
type Q56061
De Pernas pro Ar 2 were filmed in [ANSWERS]
['Q10264518', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q10264518 property:P915 ?k . ?k rdf:type ontology:Q56061 }
Rio de Janeiro New York City
De Pernas pro Ar 2 were filmed in Rio de Janeiro and New York City
Rio de Janeiro New York City
action filter_type
action find
entity De Pernas pro Ar 2
relation filming location
type administrative territorial entity
['De Pernas pro Ar 2', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:De_Pernas_pro_Ar_2 property:filming_location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q8678 Q60
P17
Q15617994
USER
Which administrative territories are Rio de Janeiro and New York City a part of ?
(Q8678,P17,c(Q15617994)) (Q60,P17,c(Q15617994))
action union
action filter_type
action find
entity Q8678
relation P17
type Q15617994
action filter_type
action find
entity Q60
relation P17
type Q15617994
['Q8678', 'P17', {'concept': 'Q15617994'}] ['Q60', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?x property:P17 ?f . VALUES ( ?x ) { ( resource:Q8678 ) ( resource:Q60 ) } }
Rio de Janeiro New York City
action union
action filter_type
action find
entity Rio de Janeiro
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}] ['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?x property:country ?f . VALUES ( ?x ) { ( resource:Rio_de_Janeiro ) ( resource:New_York_City ) } }
[]
designation for an administrative territorial entity
Q155 Q30
SYSTEM
Brazil, United States of America
Q155 Q30
(Q8678,P17,c(Q15617994)) (Q60,P17,c(Q15617994))
action union
action filter_type
action find
entity Q8678
relation P17
type Q15617994
action filter_type
action find
entity Q60
relation P17
type Q15617994
The [ANSWERS] are Rio de Janeiro and New York City a part of
['Q8678', 'P17', {'concept': 'Q15617994'}] ['Q60', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?x property:P17 ?f . VALUES ( ?x ) { ( resource:Q8678 ) ( resource:Q60 ) } }
Brazil United States of America
The Brazil and United States of America are Rio de Janeiro and New York City a part of
Brazil United States of America
action union
action filter_type
action find
entity Rio de Janeiro
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}] ['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?x property:country ?f . VALUES ( ?x ) { ( resource:Rio_de_Janeiro ) ( resource:New_York_City ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8678
P1427
Q15091377
USER
Which cycling race starts at that administrative territory ?
(c(Q15091377),P1427,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P1427
type Q15091377
[{'concept': 'Q15091377'}, 'P1427', 'Q8678']
SELECT DISTINCT ?u WHERE { ?u property:P1427 resource:Q8678 . ?u rdf:type ontology:Q15091377 }
Rio de Janeiro
action filter_type
action find_reverse
entity Rio de Janeiro
relation start point
type cycling race
[{'concept': 'cycling race'}, 'start point', 'Rio de Janeiro']
SELECT DISTINCT ?u WHERE { ?u property:start_point resource:Rio_de_Janeiro . ?u rdf:type ontology:cycling_race }
[]
cycling race
Clarification for simple ques.
Q8678
SYSTEM
Did you mean Rio de Janeiro ?
Q155 Q30
(c(Q15091377),P1427,Q155) (c(Q15091377),P1427,Q30)
[ANSWER]
[{'concept': 'Q15091377'}, 'P1427', 'Q155'] [{'concept': 'Q15091377'}, 'P1427', 'Q30']
SELECT DISTINCT ?u WHERE { ?u property:P1427 resource:Q8678 . ?u rdf:type ontology:Q15091377 }
Brazil United States of America
Did you mean Rio de Janeiro ?
Rio de Janeiro
[{'concept': 'cycling race'}, 'start point', 'Brazil'] [{'concept': 'cycling race'}, 'start point', 'United States of America']
SELECT DISTINCT ?u WHERE { ?u property:start_point resource:Rio_de_Janeiro . ?u rdf:type ontology:cycling_race }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15091377),P1427,Q8678)
[{'concept': 'Q15091377'}, 'P1427', 'Q8678']
[{'concept': 'cycling race'}, 'start point', 'Rio de Janeiro']
[]
Q20857729
SYSTEM
International Road Cycling Challenge
Q20857729
(c(Q15091377),P1427,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P1427
type Q15091377
[ANSWER] starts at that administrative territory
[{'concept': 'Q15091377'}, 'P1427', 'Q8678']
SELECT DISTINCT ?u WHERE { ?u property:P1427 resource:Q8678 . ?u rdf:type ontology:Q15091377 }
International Road Cycling Challenge
International Road Cycling Challenge starts at that administrative territory
International Road Cycling Challenge
action filter_type
action find_reverse
entity Rio de Janeiro
relation start point
type cycling race
[{'concept': 'cycling race'}, 'start point', 'Rio de Janeiro']
SELECT DISTINCT ?u WHERE { ?u property:start_point resource:Rio_de_Janeiro . ?u rdf:type ontology:cycling_race }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q387764 Q20857729
P1444 P20
Q56061
USER
Which administrative territories do the journey end for International Road Cycling Challenge or did the expiration of William Howard Hearst occur ?
OR((Q20857729,P1444,c(Q56061)), (Q387764,P20,c(Q56061)))
action filter_type
action union
action find
entity Q20857729
relation P1444
action find
entity Q387764
relation P20
type Q56061
{'OR': [['Q20857729', 'P1444', {'concept': 'Q56061'}], ['Q387764', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q20857729 property:P1444 ?g } UNION { resource:Q387764 property:P20 ?g } } . ?g rdf:type ontology:Q56061 }
William Howard Hearst International Road Cycling Challenge
action filter_type
action union
action find
entity International Road Cycling Challenge
relation destination point
action find
entity William Howard Hearst
relation place of death
type administrative territorial entity
{'OR': [['International Road Cycling Challenge', 'destination point', {'concept': 'administrative territorial entity'}], ['William Howard Hearst', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:International_Road_Cycling_Challenge property:destination_point ?g } UNION { resource:William_Howard_Hearst property:place_of_death ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678 Q172
SYSTEM
Rio de Janeiro, Toronto
Q8678 Q172
OR((Q20857729,P1444,c(Q56061)), (Q387764,P20,c(Q56061)))
action filter_type
action union
action find
entity Q20857729
relation P1444
action find
entity Q387764
relation P20
type Q56061
Or between [ANSWERS] the journey end for International Road Cycling Challenge the expiration of William Howard Hearst do
{'OR': [['Q20857729', 'P1444', {'concept': 'Q56061'}], ['Q387764', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q20857729 property:P1444 ?g } UNION { resource:Q387764 property:P20 ?g } } . ?g rdf:type ontology:Q56061 }
Rio de Janeiro Toronto
Or between Rio de Janeiro and Toronto the journey end for International Road Cycling Challenge the expiration of William Howard Hearst do
Rio de Janeiro Toronto
action filter_type
action union
action find
entity International Road Cycling Challenge
relation destination point
action find
entity William Howard Hearst
relation place of death
type administrative territorial entity
{'OR': [['International Road Cycling Challenge', 'destination point', {'concept': 'administrative territorial entity'}], ['William Howard Hearst', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:International_Road_Cycling_Challenge property:destination_point ?g } UNION { resource:William_Howard_Hearst property:place_of_death ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q8678 Q172
P840
Q838948
USER
Which works of art have a setting location of those administrative territories ?
(c(Q838948),P840,Q8678) (c(Q838948),P840,Q172)
action filter_type
action find_reverse
entity prev_answer
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q8678'] [{'concept': 'Q838948'}, 'P840', 'Q172']
SELECT DISTINCT ?k WHERE { VALUES ( ?x ) { ( resource:Q8678 ) ( resource:Q172 ) } . ?k rdf:type ontology:Q838948 . ?k property:P840 ?x }
Rio de Janeiro Toronto
action filter_type
action find_reverse
entity prev_answer
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Rio de Janeiro'] [{'concept': 'work of art'}, 'narrative location', 'Toronto']
SELECT DISTINCT ?k WHERE { VALUES ( ?x ) { ( resource:Rio_de_Janeiro ) ( resource:Toronto ) } . ?k rdf:type ontology:work_of_art . ?k property:narrative_location ?x }
[]
work of art
Q466611 Q60506 Q334780
SYSTEM
The Incredible Hulk, The Twilight Saga: Breaking Dawn – Part 1, Moonraker
Q1910645 Q7094268 Q548593 Q303875 Q1371008 Q2307428 Q4306681 Q2273829 Q961492 Q2698127 Q2184700 Q7245820 Q319171 Q401976 Q334780 Q5084676 Q220741 Q7745886 Q7073268 Q137703 Q6825594 Q3102024 Q1346566 Q184605 Q60506 Q736916 Q77151 Q538266 Q5055536 Q657755 Q14783869 Q1729018 Q142695 Q84022 Q3008425 Q4007156 Q517398 Q1054036 Q5438552 Q282781 Q5564465 Q7408962 Q466611 Q4733939 Q1434597 Q302842 Q3283009 Q422997 Q4811468 Q587419 Q4711987 Q3091040 Q753899 Q2628332
(c(Q838948),P840,Q8678) (c(Q838948),P840,Q172)
action filter_type
action find_reverse
entity prev_answer
relation P840
type Q838948
[ANSWERS] have a setting location of those administrative territories
[{'concept': 'Q838948'}, 'P840', 'Q8678'] [{'concept': 'Q838948'}, 'P840', 'Q172']
SELECT DISTINCT ?k WHERE { VALUES ( ?x ) { ( resource:Q8678 ) ( resource:Q172 ) } . ?k rdf:type ontology:Q838948 . ?k property:P840 ?x }
City of Men Only When I Dance Blame It on Rio Se Tutte le Donne del Mondo Wild Orchid Road to Rio Nancy Goes to Rio That Night in Rio OSS 117: Lost in Rio Orfeu Thunderbird 6 Prisoner of Rio That Man from Rio Fast Five Moonraker Charlie Chan in Rio City of God The Last Mercenary O Homem do Futuro Four Days in September Meu Nome Não É Johnny Madame Satã Now, Voyager 2012 The Twilight Saga: Breaking Dawn – Part 1 Pixote Last Stop 174 Black Orpheus Cazuza – O Tempo Não Pára Peacetime Reaching for the Moon Kickboxer 3 Elite Squad: The Enemy Within Bossa Nova Rio Sex Comedy Holiday for Lovers Dhoom 2 Central Station Favela Rising Elite Squad Girl from Rio Samba On Your Feet The Incredible Hulk Almost Brothers Flying Down to Rio From Beginning to End Bus 174 The Girl from Rio Astro: An Urban Fable in a Magical Rio de Janeiro Notorious Rio 2096: A Story of Love and Fury Furia à Bahia pour OSS 117 Scott Pilgrim vs. the World Touch of Pink
The Incredible Hulk, The Twilight Saga: Breaking Dawn – Part 1 and Moonraker have a setting location of those administrative territories
The Incredible Hulk The Twilight Saga: Breaking Dawn – Part 1 Moonraker
action filter_type
action find_reverse
entity prev_answer
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Rio de Janeiro'] [{'concept': 'work of art'}, 'narrative location', 'Toronto']
SELECT DISTINCT ?k WHERE { VALUES ( ?x ) { ( resource:Rio_de_Janeiro ) ( resource:Toronto ) } . ?k rdf:type ontology:work_of_art . ?k property:narrative_location ?x }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8678
P1071
Q2235308
USER
Which ship type has that administrative territory as its location of final assembly ?
(c(Q2235308),P1071,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P1071
type Q2235308
[{'concept': 'Q2235308'}, 'P1071', 'Q8678']
SELECT DISTINCT ?j WHERE { ?j property:P1071 resource:Q8678 . ?j rdf:type ontology:Q2235308 }
Rio de Janeiro
action filter_type
action find_reverse
entity Rio de Janeiro
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'Rio de Janeiro']
SELECT DISTINCT ?j WHERE { ?j property:location_of_final_assembly resource:Rio_de_Janeiro . ?j rdf:type ontology:ship_type }
[]
ship type
Clarification for simple ques.
Q8678
SYSTEM
Did you mean Rio de Janeiro ?
Q466611 Q60506 Q334780
(c(Q2235308),P1071,Q466611) (c(Q2235308),P1071,Q60506) (c(Q2235308),P1071,Q334780)
[ANSWER]
[{'concept': 'Q2235308'}, 'P1071', 'Q466611'] [{'concept': 'Q2235308'}, 'P1071', 'Q60506'] [{'concept': 'Q2235308'}, 'P1071', 'Q334780']
SELECT DISTINCT ?j WHERE { ?j property:P1071 resource:Q8678 . ?j rdf:type ontology:Q2235308 }
The Incredible Hulk The Twilight Saga: Breaking Dawn – Part 1 Moonraker
Did you mean Rio de Janeiro ?
Rio de Janeiro
[{'concept': 'ship type'}, 'location of final assembly', 'The Incredible Hulk'] [{'concept': 'ship type'}, 'location of final assembly', 'The Twilight Saga: Breaking Dawn – Part 1'] [{'concept': 'ship type'}, 'location of final assembly', 'Moonraker']
SELECT DISTINCT ?j WHERE { ?j property:location_of_final_assembly resource:Rio_de_Janeiro . ?j rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2235308),P1071,Q8678)
[{'concept': 'Q2235308'}, 'P1071', 'Q8678']
[{'concept': 'ship type'}, 'location of final assembly', 'Rio de Janeiro']
[]
Q7141439
SYSTEM
Pará-class monitor
Q7141439
(c(Q2235308),P1071,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P1071
type Q2235308
[ANSWER] has that administrative territory as its location of final assembly
[{'concept': 'Q2235308'}, 'P1071', 'Q8678']
SELECT DISTINCT ?j WHERE { ?j property:P1071 resource:Q8678 . ?j rdf:type ontology:Q2235308 }
Pará-class monitor
Pará-class monitor has that administrative territory as its location of final assembly
Pará-class monitor
action filter_type
action find_reverse
entity Rio de Janeiro
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'Rio de Janeiro']
SELECT DISTINCT ?j WHERE { ?j property:location_of_final_assembly resource:Rio_de_Janeiro . ?j rdf:type ontology:ship_type }
[]