Simple Question (Direct)
Simple Question
Q7457500
P161
Q502895
USER
Which people starred in Seven Were Saved ?
(Q7457500,P161,c(Q502895))
action filter_type
action find
entity Q7457500
relation P161
type Q502895
['Q7457500', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q7457500 property:P161 ?j }
Seven Were Saved
action filter_type
action find
entity Seven Were Saved
relation cast member
type common name
['Seven Were Saved', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Seven_Were_Saved property:cast_member ?j }
[]
common name
Q3453467 Q1379341
SYSTEM
Russell Hayden, Richard Denning
Q3453467 Q1379341
(Q7457500,P161,c(Q502895))
action filter_type
action find
entity Q7457500
relation P161
type Q502895
The [ANSWERS] starred in Seven Were Saved
['Q7457500', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q7457500 property:P161 ?j }
Russell Hayden Richard Denning
The Russell Hayden and Richard Denning starred in Seven Were Saved
Russell Hayden Richard Denning
action filter_type
action find
entity Seven Were Saved
relation cast member
type common name
['Seven Were Saved', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Seven_Were_Saved property:cast_member ?j }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3453467
P162
Q838948
USER
Which work of art created that person ?
(c(Q838948),P162,Q3453467)
action filter_type
action find_reverse
entity Q3453467
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q3453467']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q3453467 . ?m rdf:type ontology:Q838948 }
Russell Hayden
action filter_type
action find_reverse
entity Russell Hayden
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Russell Hayden']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Russell_Hayden . ?m rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q1379341
SYSTEM
Did you mean Richard Denning ?
Q3453467 Q1379341
(c(Q838948),P162,Q3453467) (c(Q838948),P162,Q1379341)
[ANSWER]
[{'concept': 'Q838948'}, 'P162', 'Q3453467'] [{'concept': 'Q838948'}, 'P162', 'Q1379341']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q3453467 . ?m rdf:type ontology:Q838948 }
Russell Hayden Richard Denning
Did you mean Richard Denning ?
Richard Denning
[{'concept': 'work of art'}, 'producer', 'Russell Hayden'] [{'concept': 'work of art'}, 'producer', 'Richard Denning']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Russell_Hayden . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Russell Hayden. Could you tell me the answer for that?
(c(Q838948),P162,Q3453467)
Q3453467
[{'concept': 'Q838948'}, 'P162', 'Q3453467']
[{'concept': 'work of art'}, 'producer', 'Russell Hayden']
[]
Q12132460
SYSTEM
When the Girls Take Over
Q12132460
(c(Q838948),P162,Q3453467)
action filter_type
action find_reverse
entity Q3453467
relation P162
type Q838948
When the Girls take Over created that person
[{'concept': 'Q838948'}, 'P162', 'Q3453467']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q3453467 . ?m rdf:type ontology:Q838948 }
When the Girls Take Over
When the Girls take Over created that person
When the Girls Take Over
action filter_type
action find_reverse
entity Russell Hayden
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Russell Hayden']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Russell_Hayden . ?m rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q12132460 Q1283896
P161
Q502895
USER
Is Edgar Gorgas in When the Girls Take Over ?
(Q12132460,P161,Q1283896)
action is_in
entity Q1283896
action find
entity Q12132460
relation P161
['Q12132460', 'P161', 'Q1283896']
ASK WHERE { resource:Q12132460 property:P161 resource:Q1283896 }
When the Girls Take Over Edgar Gorgas
action is_in
entity Edgar Gorgas
action find
entity When the Girls Take Over
relation cast member
['When the Girls Take Over', 'cast member', 'Edgar Gorgas']
ASK WHERE { resource:When_the_Girls_Take_Over property:cast_member resource:Edgar_Gorgas }
[]
common name
SYSTEM
NO
(Q12132460,P161,Q1283896)
action is_in
entity Q1283896
action find
entity Q12132460
relation P161
[ANSWER]
['Q12132460', 'P161', 'Q1283896']
ASK WHERE { resource:Q12132460 property:P161 resource:Q1283896 }
No
action is_in
entity Edgar Gorgas
action find
entity When the Girls Take Over
relation cast member
['When the Girls Take Over', 'cast member', 'Edgar Gorgas']
ASK WHERE { resource:When_the_Girls_Take_Over property:cast_member resource:Edgar_Gorgas }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6946825 Q1379341
P27 P17
Q15617994
USER
Which administrative territories are Richard Denning an inhabitant of or are Myazedi present in ?
OR((Q1379341,P27,c(Q15617994)), (Q6946825,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1379341
relation P27
action find
entity Q6946825
relation P17
type Q15617994
{'OR': [['Q1379341', 'P27', {'concept': 'Q15617994'}], ['Q6946825', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1379341 property:P27 ?v } UNION { resource:Q6946825 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Myazedi Richard Denning
action filter_type
action union
action find
entity Richard Denning
relation country of citizenship
action find
entity Myazedi
relation country
type designation for an administrative territorial entity
{'OR': [['Richard Denning', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Myazedi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Richard_Denning property:country_of_citizenship ?v } UNION { resource:Myazedi property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q836
SYSTEM
United States of America, Myanmar
Q30 Q836
OR((Q1379341,P27,c(Q15617994)), (Q6946825,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1379341
relation P27
action find
entity Q6946825
relation P17
type Q15617994
[ANSWERS] are Richard Denning an inhabitant of or are Myazedi present in
{'OR': [['Q1379341', 'P27', {'concept': 'Q15617994'}], ['Q6946825', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1379341 property:P27 ?v } UNION { resource:Q6946825 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
United States of America Myanmar
United States of America and Myanmar are Richard Denning an inhabitant of or are Myazedi present in
United States of America Myanmar
action filter_type
action union
action find
entity Richard Denning
relation country of citizenship
action find
entity Myazedi
relation country
type designation for an administrative territorial entity
{'OR': [['Richard Denning', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Myazedi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Richard_Denning property:country_of_citizenship ?v } UNION { resource:Myazedi property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1209853
P361
Q838948 Q502895 Q6619679
USER
How many works of art are approximately the same number of people or fictional humanoids a part of as Dick Tracy ?
(c(Q502895)|c(Q6619679),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q1209853
relation P361
type Q502895
type Q6619679
[[{'concept': 'Q502895'}, {'concept': 'Q6619679'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { VALUES ( ?u ) { ( ontology:Q502895 ) ( ontology:Q6619679 ) } . ?l rdf:type ?u } GROUP BY ?e } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q6619679 ) } } . ?n property:P361 resource:Q1209853 } } }
Dick Tracy
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type common name
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Dick Tracy
relation part of
type common name
type fictional humanoid
[[{'concept': 'common name'}, {'concept': 'fictional humanoid'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { VALUES ( ?u ) { ( ontology:common_name ) ( ontology:fictional_humanoid ) } . ?l rdf:type ?u } GROUP BY ?e } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:fictional_humanoid ) } } . ?n property:part_of resource:Dick_Tracy } } }
[]
work of art common name fictional humanoid
SYSTEM
118
Q2312028 Q5723375 Q3415280 Q4143086 Q127367 Q22260775 Q193066 Q206400 Q2364709 Q7719555 Q372959 Q102438 Q10371896 Q18547944 Q6503493 Q3907523 Q3907489 Q29478 Q17275612 Q6675667 Q552002 Q19393199 Q934970 Q1209853 Q18609716 Q284184 Q16161848 Q215750 Q734834 Q222867 Q4660040 Q495954 Q733065 Q747847 Q977372 Q161687 Q1534737 Q4656518 Q1411766 Q205028 Q1623056 Q1760893 Q753449 Q4135545 Q314003 Q4110177 Q1356770 Q3193421 Q16741153 Q332368 Q3983379 Q478748 Q21129836 Q21129837 Q2003287 Q1752478 Q174811 Q945138 Q187483 Q874496 Q475476 Q103569 Q976149 Q3907478 Q1988321 Q18577910 Q3428050 Q3346699 Q472359 Q971109 Q1360347 Q632753 Q60072 Q489772 Q41567 Q3747490 Q1270166 Q3395799 Q7451782 Q463313 Q18217301 Q232009 Q309153 Q165325 Q2626332 Q7338317 Q15057808 Q22527805 Q203443 Q201022 Q3907484 Q4680630 Q2089457 Q3907512 Q2661437 Q79218 Q1125687 Q20857440 Q24980 Q93184 Q24568939 Q7203413 Q16980242 Q1230318 Q378838 Q928019 Q2405799 Q281465 Q3907505 Q164804 Q16156301 Q3992615 Q1297233 Q482994 Q3087894 Q21340348 Q7600677 Q2467518
(c(Q502895)|c(Q6619679),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q1209853
relation P361
type Q502895
type Q6619679
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q6619679'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { VALUES ( ?u ) { ( ontology:Q502895 ) ( ontology:Q6619679 ) } . ?l rdf:type ?u } GROUP BY ?e } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q6619679 ) } } . ?n property:P361 resource:Q1209853 } } }
Star Spangled Rhythm Tales of an Island Dangerous Moonlight Ride The Lord of the Rings: The Fellowship of the Ring Sonar Kella Breakfast at Tiffany's The Merchant of Venice Alice Comedies The Bowman and The Spearman The Towering Inferno Harry Potter and the Philosopher's Stone Sing, Baby, Sing The Martian Law of the Sea polyptych of Saint Augustine Assumption Faust Le Tour de France dans les Pyrénées Looney Tunes: Unleashed Ro.Go.Pa.G. Life of Humanity Le Roi et l'oiseau Dick Tracy Scenes from the Life of the Virgin Ra.One The Arts of War and The Arts of Peace Julius Caesar Ghent Altarpiece 2 Fast 2 Furious A Texas Trilogy Henry V Dabangg New Orleans New York Stories Harry Potter and the Half-Blood Prince Life A Divine Double Feature predella Iron Man 2 The Fighting Temptations Roseanna Christine Henry IV (play) Stolpersteine A Night Before Christmas Heroon Karl Liebknecht 3x3D A View to a Kill Ten Minutes Older: The Trumpet The Holiday The Arts of War The Arts of Peace The Gates of Hell Slap Shot Up Bedknobs and Broomsticks Bayeux Tapestry The Poseidon Adventure diptych Alien Laura Roverella Altarpiece Seven Sorrows Polyptych George VI and Queen Elizabeth Memorial Christ with singing and music-making Angels Nymphomaniac El Cantante Inferno Hunnestad Monument Babes in Arms The Sound of Music Seven Wonders of the Ancient World Hamlet baptismal font of the Siena Baptistry Danish Crown Regalia Polyptych of Certosa di Pavia Separate Tables Romeo + Juliet Rizal Monument Harry Potter and the Deathly Hallows – Part 2 Singin' in the Rain Kill Bill Volume 1 A Breed Apart Rivers and Tides Monument to the Republic Chatsworth Apollo headstone folk dance 1472 Polyptych Sculptural Ensemble of Constantin Brâncuși at Târgu Jiu Cold War Porto San Giorgio Polyptych The Witches triptych Teheran 43 Henry VI (play) Part 1-3 Monty Python's The Meaning of Life drawing Meditation Playing for Keeps Arabian Nights Carefree The Oldest Profession Kill Bill Volume 2 DC Universe Animated Original Movies Albert Memorial Montefiore dell'Aso Polyptych Underworld Medals by Pisanello Tomb of Giuliano de' Medici, Duke of Nemours Ferdinand the Bull album Parthenon Frieze Madonna and Child, Saints Francis, John the Baptist, John the Evangelist and Anthony of Padua computer graphics Visions of the Hereafter
118
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type common name
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Dick Tracy
relation part of
type common name
type fictional humanoid
[[{'concept': 'common name'}, {'concept': 'fictional humanoid'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { VALUES ( ?u ) { ( ontology:common_name ) ( ontology:fictional_humanoid ) } . ?l rdf:type ?u } GROUP BY ?e } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:fictional_humanoid ) } } . ?n property:part_of resource:Dick_Tracy } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q450346 Q7457500
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of Seven Were Saved and are Edwidge Danticat an inhabitant of ?
AND((Q7457500,P495,c(Q15617994)), (Q450346,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7457500
relation P495
action find
entity Q450346
relation P27
type Q15617994
{'AND': [['Q7457500', 'P495', {'concept': 'Q15617994'}], ['Q450346', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q7457500 property:P495 ?g . resource:Q450346 property:P27 ?g }
Edwidge Danticat Seven Were Saved
action filter_type
action intersection
action find
entity Seven Were Saved
relation country of origin
action find
entity Edwidge Danticat
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Seven Were Saved', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Edwidge Danticat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Seven_Were_Saved property:country_of_origin ?g . resource:Edwidge_Danticat property:country_of_citizenship ?g }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q7457500,P495,c(Q15617994)), (Q450346,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7457500
relation P495
action find
entity Q450346
relation P27
type Q15617994
[ANSWER] is the countries of origin of Seven Were Saved and is Edwidge Danticat an inhabitant of
{'AND': [['Q7457500', 'P495', {'concept': 'Q15617994'}], ['Q450346', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q7457500 property:P495 ?g . resource:Q450346 property:P27 ?g }
United States of America
United States of America is the countries of origin of Seven Were Saved and is Edwidge Danticat an inhabitant of
United States of America
action filter_type
action intersection
action find
entity Seven Were Saved
relation country of origin
action find
entity Edwidge Danticat
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Seven Were Saved', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Edwidge Danticat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Seven_Were_Saved property:country_of_origin ?g . resource:Edwidge_Danticat property:country_of_citizenship ?g }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with atmost 25 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:P530 ?m . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?u <= 25 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:diplomatic_relation ?m . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?u <= 25 ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[ANSWERS] have diplomatic relationships with atmost 25 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:P530 ?m . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?u <= 25 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have diplomatic relationships with atmost 25 administrative territories
Denmark Austria New Zealand
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:diplomatic_relation ?m . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?u <= 25 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35 Q40 Q664
P17
Q3947
USER
Which houses are present in Denmark, Austria and New Zealand ?
(c(Q3947),P17,Q35) (c(Q3947),P17,Q40) (c(Q3947),P17,Q664)
action union
action filter_type
action find_reverse
entity Q35
relation P17
type Q3947
action filter_type
action find_reverse
entity Q40
relation P17
type Q3947
action filter_type
action find_reverse
entity Q664
relation P17
type Q3947
[{'concept': 'Q3947'}, 'P17', 'Q35'] [{'concept': 'Q3947'}, 'P17', 'Q40'] [{'concept': 'Q3947'}, 'P17', 'Q664']
SELECT DISTINCT ?p WHERE { { ?p property:P17 resource:Q40 . ?p rdf:type ontology:Q3947 } UNION { ?p property:P17 resource:Q35 . ?p rdf:type ontology:Q3947 } }
Denmark Austria New Zealand
action union
action filter_type
action find_reverse
entity Denmark
relation country
type house
action filter_type
action find_reverse
entity Austria
relation country
type house
action filter_type
action find_reverse
entity New Zealand
relation country
type house
[{'concept': 'house'}, 'country', 'Denmark'] [{'concept': 'house'}, 'country', 'Austria'] [{'concept': 'house'}, 'country', 'New Zealand']
SELECT DISTINCT ?p WHERE { { ?p property:country resource:Austria . ?p rdf:type ontology:house } UNION { ?p property:country resource:Denmark . ?p rdf:type ontology:house } }
[]
house
Q876743 Q23908643 Q3327039
SYSTEM
Villa Wartholz, Gyttegård, Mozart's birthplace
Q1576599 Q10527309 Q22956214 Q12308164 Q23908643 Q23908651 Q22956452 Q26838223 Q20987227 Q876743 Q15117808 Q1693984 Q3327039 Q204129 Q693042 Q20196114 Q6376474
(c(Q3947),P17,Q35) (c(Q3947),P17,Q40) (c(Q3947),P17,Q664)
action union
action filter_type
action find_reverse
entity Q35
relation P17
type Q3947
action filter_type
action find_reverse
entity Q40
relation P17
type Q3947
action filter_type
action find_reverse
entity Q664
relation P17
type Q3947
[ANSWERS] are present in Denmark, Austria and New Zealand
[{'concept': 'Q3947'}, 'P17', 'Q35'] [{'concept': 'Q3947'}, 'P17', 'Q40'] [{'concept': 'Q3947'}, 'P17', 'Q664']
SELECT DISTINCT ?p WHERE { { ?p property:P17 resource:Q40 . ?p rdf:type ontology:Q3947 } UNION { ?p property:P17 resource:Q35 . ?p rdf:type ontology:Q3947 } }
Marienborg Husassistenternes Byggeforening og Alderdomshjem Apostelhuset Sankt Mogensgade 11 Gyttegård Kirkebjerg Allé 186 Ridderhuset Collin House Villa Kampen Villa Wartholz Kunsthaus Rust Villa Maund Mozart's birthplace Hermesvilla Kaiservilla Villa Miralago Katherine Mansfield Birthplace
Villa Wartholz, Gyttegård and Mozart's birthplace are present in Denmark, Austria and New Zealand
Villa Wartholz Gyttegård Mozart's birthplace
action union
action filter_type
action find_reverse
entity Denmark
relation country
type house
action filter_type
action find_reverse
entity Austria
relation country
type house
action filter_type
action find_reverse
entity New Zealand
relation country
type house
[{'concept': 'house'}, 'country', 'Denmark'] [{'concept': 'house'}, 'country', 'Austria'] [{'concept': 'house'}, 'country', 'New Zealand']
SELECT DISTINCT ?p WHERE { { ?p property:country resource:Austria . ?p rdf:type ontology:house } UNION { ?p property:country resource:Denmark . ?p rdf:type ontology:house } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q876743
P800
Q502895
USER
Who is author of that house ?
(c(Q502895),P800,Q876743)
action filter_type
action find_reverse
entity Q876743
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q876743']
SELECT DISTINCT ?d WHERE { ?d property:P800 resource:Q876743 . ?d rdf:type ontology:Q502895 }
Villa Wartholz
action filter_type
action find_reverse
entity Villa Wartholz
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Villa Wartholz']
SELECT DISTINCT ?d WHERE { ?d property:notable_work resource:Villa_Wartholz . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q876743
SYSTEM
Did you mean Villa Wartholz ?
Q876743 Q23908643 Q3327039
(c(Q502895),P800,Q876743) (c(Q502895),P800,Q23908643) (c(Q502895),P800,Q3327039)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q876743'] [{'concept': 'Q502895'}, 'P800', 'Q23908643'] [{'concept': 'Q502895'}, 'P800', 'Q3327039']
SELECT DISTINCT ?d WHERE { ?d property:P800 resource:Q876743 . ?d rdf:type ontology:Q502895 }
Villa Wartholz Gyttegård Mozart's birthplace
Did you mean Villa Wartholz ?
Villa Wartholz
[{'concept': 'common name'}, 'notable work', 'Villa Wartholz'] [{'concept': 'common name'}, 'notable work', 'Gyttegård'] [{'concept': 'common name'}, 'notable work', "Mozart's birthplace"]
SELECT DISTINCT ?d WHERE { ?d property:notable_work resource:Villa_Wartholz . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P800,Q876743)
[{'concept': 'Q502895'}, 'P800', 'Q876743']
[{'concept': 'common name'}, 'notable work', 'Villa Wartholz']
[]
Q78792
SYSTEM
Heinrich von Ferstel
Q78792
(c(Q502895),P800,Q876743)
action filter_type
action find_reverse
entity Q876743
relation P800
type Q502895
Author of that house is Baron [ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q876743']
SELECT DISTINCT ?d WHERE { ?d property:P800 resource:Q876743 . ?d rdf:type ontology:Q502895 }
Heinrich von Ferstel
Author of that house is Baron Heinrich von Ferstel
Heinrich von Ferstel
action filter_type
action find_reverse
entity Villa Wartholz
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Villa Wartholz']
SELECT DISTINCT ?d WHERE { ?d property:notable_work resource:Villa_Wartholz . ?d rdf:type ontology:common_name }
[]