Simple Question (Direct)
Simple Question
Q207385
P1435
Q41176
USER
Which building heritage status does Kensington Palace have ?
(Q207385,P1435,c(Q41176))
action filter_type
action find
entity Q207385
relation P1435
type Q41176
['Q207385', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?j WHERE { resource:Q207385 property:P1435 ?j . ?j rdf:type ontology:Q41176 }
Kensington Palace
action filter_type
action find
entity Kensington Palace
relation heritage status
type building
['Kensington Palace', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?j WHERE { resource:Kensington_Palace property:heritage_status ?j . ?j rdf:type ontology:building }
[]
building
Q15700818
SYSTEM
Grade I listed building
Q15700818
(Q207385,P1435,c(Q41176))
action filter_type
action find
entity Q207385
relation P1435
type Q41176
Kensington Palace has a [ANSWER]
['Q207385', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?j WHERE { resource:Q207385 property:P1435 ?j . ?j rdf:type ontology:Q41176 }
Grade I listed building
Kensington Palace has a Grade I listed building
Grade I listed building
action filter_type
action find
entity Kensington Palace
relation heritage status
type building
['Kensington Palace', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?j WHERE { resource:Kensington_Palace property:heritage_status ?j . ?j rdf:type ontology:building }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q41176 Q838948 Q11060274
USER
Which buildings are depicted in min number of works of art and prints ?
(c(Q838948)|c(Q11060274),P180,c(Q41176))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q41176
type Q838948
action find_reverse_tuple_counts
relation P180
type Q41176
type Q11060274
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q41176'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } GROUP BY ?i } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } . ?e rdf:type ?h } GROUP BY ?a } . FILTER ( ?v = ?m ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type building
type work of art
action find_reverse_tuple_counts
relation depicts
type building
type print
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'building'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:print ) ( ontology:work_of_art ) } } GROUP BY ?i } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:print ) } . ?e rdf:type ?h } GROUP BY ?a } . FILTER ( ?v = ?m ) }
[]
building work of art print
Q42646 Q1075988 Q9188
SYSTEM
Windsor Castle, Louvre Palace, Empire State Building
Q131295 Q2047247 Q2956656 Q62408 Q717105 Q1219688 Q15979526 Q1526555 Q210999 Q274393 Q15199454 Q18378847 Q559698 Q170544 Q34627 Q17742736 Q756098 Q182147 Q750444 Q918230 Q151030 Q979494 Q683343 Q1992203 Q11579153 Q165044 Q133215 Q2854543 Q1075988 Q940733 Q961082 Q17743002 Q5043203 Q12020836 Q867143 Q2080521 Q2050495 Q189883 Q329852 Q42646 Q13126550 Q209937 Q1244860 Q7162062 Q57821 Q7461 Q2235514 Q234364 Q17743977 Q170495 Q430792 Q3983167 Q1424583 Q5137179 Q746063 Q5784097 Q957551 Q1072510 Q482852 Q543654 Q747484 Q211818 Q15979336 Q456817 Q1267721 Q731284 Q855747 Q27686 Q11303 Q477157 Q131263 Q659138 Q212198 Q859247 Q3377026 Q9188 Q939883 Q121635 Q1439379 Q15979201 Q267596 Q28077 Q1265593 Q1303167 Q3395336
(c(Q838948)|c(Q11060274),P180,c(Q41176))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q41176
type Q838948
action find_reverse_tuple_counts
relation P180
type Q41176
type Q11060274
[ANSWERS] are depicted in min number of works of art and prints
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q41176'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } GROUP BY ?i } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } . ?e rdf:type ?h } GROUP BY ?a } . FILTER ( ?v = ?m ) }
brothel Palais de la Cité Notre-Dame-du-Mûrier Palace of Westminster Arvfurstens palats Temple of Vesta St. Govan's Chapel temple of Janus psychiatric hospital bakery Bishop's Palace Glangwili General Hospital Rialto Theatre tent synagogue St. David's Cathedral Hall (formerly Chapel Of St.mary's College) & Attached Cloister Ruins,the Cathe Royal Castle Winter Palace Stockholm Palace Roman villa Moulin Rouge Waag, Haarlem chicken coop temple of Diana Towatari Shrine greenhouse casino Catherine Palace Louvre Palace Christiansborg Palace gazebo Chapel And Remains Of Nave Of Former Friary At Christ College Carmarthen Public Rooms timber framed house Roman temple market hall De Duif Doge's Palace Luxembourg Palace Windsor Castle Tabernacle Chapel Vienna State Opera general store Pen-y-Fal Hospital fortification Gatchina Palace Sentry box Tuileries Palace Capel Gwynfil Topkapı Palace Temple of Venus and Roma Temple of Clitumnus sepulchral chapel Clytha Castle Villa d'Este hut Ca' Foscari Chapultepec Castle Changgyeonggung city hall Ancient theatre of Taormina Belvedere St Davids Bishops Palace Amer Fort Palazzo Ducale Temple of Vespasian and Titus Egyptian temple hotel skyscraper Changdeokgung barracks Theatre of Marcellus pub lazaretto Hôtel du Petit-Bourbon Empire State Building Pitié-Salpêtrière Hospital Théâtre du Gymnase Marie Bell Tintern Abbey North Wales Hospital ancient Greek temple Turkish bath Ca' Vendramin Calergi barn Gwrych Castle
Windsor Castle, Louvre Palace and Empire State Building are depicted in min number of works of art and prints
Windsor Castle Louvre Palace Empire State Building
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type building
type work of art
action find_reverse_tuple_counts
relation depicts
type building
type print
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'building'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?m ) { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:print ) ( ontology:work_of_art ) } } GROUP BY ?i } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:print ) } . ?e rdf:type ?h } GROUP BY ?a } . FILTER ( ?v = ?m ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9188
P840
Q838948
USER
Which work of art has its narrative set in that building ?
(c(Q838948),P840,Q9188)
action filter_type
action find_reverse
entity Q9188
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q9188']
SELECT DISTINCT ?e WHERE { ?e property:P840 resource:Q9188 . ?e rdf:type ontology:Q838948 }
Empire State Building
action filter_type
action find_reverse
entity Empire State Building
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Empire State Building']
SELECT DISTINCT ?e WHERE { ?e property:narrative_location resource:Empire_State_Building . ?e rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q1075988
SYSTEM
Did you mean Louvre Palace ?
Q42646 Q1075988 Q9188
(c(Q838948),P840,Q42646) (c(Q838948),P840,Q1075988) (c(Q838948),P840,Q9188)
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q42646'] [{'concept': 'Q838948'}, 'P840', 'Q1075988'] [{'concept': 'Q838948'}, 'P840', 'Q9188']
SELECT DISTINCT ?e WHERE { ?e property:P840 resource:Q9188 . ?e rdf:type ontology:Q838948 }
Windsor Castle Louvre Palace Empire State Building
Did you mean Louvre Palace ?
Louvre Palace
[{'concept': 'work of art'}, 'narrative location', 'Windsor Castle'] [{'concept': 'work of art'}, 'narrative location', 'Louvre Palace'] [{'concept': 'work of art'}, 'narrative location', 'Empire State Building']
SELECT DISTINCT ?e WHERE { ?e property:narrative_location resource:Empire_State_Building . ?e rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Empire State Building. Could you tell me the answer for that?
(c(Q838948),P840,Q9188)
Q9188
[{'concept': 'Q838948'}, 'P840', 'Q9188']
[{'concept': 'work of art'}, 'narrative location', 'Empire State Building']
[]
Q309048
SYSTEM
King Kong
Q309048
(c(Q838948),P840,Q9188)
action filter_type
action find_reverse
entity Q9188
relation P840
type Q838948
[ANSWER] has its narrative set in that building
[{'concept': 'Q838948'}, 'P840', 'Q9188']
SELECT DISTINCT ?e WHERE { ?e property:P840 resource:Q9188 . ?e rdf:type ontology:Q838948 }
King Kong
King Kong has its narrative set in that building
King Kong
action filter_type
action find_reverse
entity Empire State Building
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Empire State Building']
SELECT DISTINCT ?e WHERE { ?e property:narrative_location resource:Empire_State_Building . ?e rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q309048 Q160215
P144
Q838948
USER
Is King Kong an extension that one ?
(Q160215,P144,Q309048)
action is_in
entity Q309048
action find
entity Q160215
relation P144
['Q160215', 'P144', 'Q309048']
ASK WHERE { resource:Q160215 property:P144 resource:Q309048 }
King Kong King Kong
action is_in
entity King Kong
action find
entity King Kong
relation based on
['King Kong', 'based on', 'King Kong']
ASK WHERE { resource:King_Kong property:based_on resource:King_Kong }
[]
work of art
SYSTEM
YES
(Q160215,P144,Q309048)
action is_in
entity Q309048
action find
entity Q160215
relation P144
[ANSWER]
['Q160215', 'P144', 'Q309048']
ASK WHERE { resource:Q160215 property:P144 resource:Q309048 }
Yes
action is_in
entity King Kong
action find
entity King Kong
relation based on
['King Kong', 'based on', 'King Kong']
ASK WHERE { resource:King_Kong property:based_on resource:King_Kong }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1435
Q41176 Q811979 Q27686
USER
Which buildings do min number of architectural structures and hotels have ?
(c(Q811979)|c(Q27686),P1435,c(Q41176))
action argmin
action union
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q811979
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q27686
[[{'concept': 'Q811979'}, {'concept': 'Q27686'}], 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?w ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { { ?o rdf:type ontology:Q41176 . ?n rdf:type ontology:Q27686 . ?n property:P1435 ?o } UNION { ?n property:P1435 ?o . ?o rdf:type ontology:Q41176 . ?n rdf:type ontology:Q811979 } } GROUP BY ?o } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?u ) WHERE { { ?a property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?a rdf:type ontology:Q811979 } UNION { ?a property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?a rdf:type ontology:Q27686 } } GROUP BY ?t } . FILTER ( ?u = ?w ) }
action argmin
action union
action find_reverse_tuple_counts
relation heritage status
type building
type architectural structure
action find_reverse_tuple_counts
relation heritage status
type building
type hotel
[[{'concept': 'architectural structure'}, {'concept': 'hotel'}], 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?w ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { { ?o rdf:type ontology:building . ?n rdf:type ontology:hotel . ?n property:heritage_status ?o } UNION { ?n property:heritage_status ?o . ?o rdf:type ontology:building . ?n rdf:type ontology:architectural_structure } } GROUP BY ?o } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?u ) WHERE { { ?a property:heritage_status ?t . ?t rdf:type ontology:building . ?a rdf:type ontology:architectural_structure } UNION { ?a property:heritage_status ?t . ?t rdf:type ontology:building . ?a rdf:type ontology:hotel } } GROUP BY ?t } . FILTER ( ?u = ?w ) }
[]
building architectural structure hotel
Q16983914 Q10729142
SYSTEM
Heritage at Risk, category C listed building
Q16983914 Q10729142
(c(Q811979)|c(Q27686),P1435,c(Q41176))
action argmin
action union
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q811979
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q27686
Min number of architectural structures and hotels have been [ANSWERS]
[[{'concept': 'Q811979'}, {'concept': 'Q27686'}], 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?w ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { { ?o rdf:type ontology:Q41176 . ?n rdf:type ontology:Q27686 . ?n property:P1435 ?o } UNION { ?n property:P1435 ?o . ?o rdf:type ontology:Q41176 . ?n rdf:type ontology:Q811979 } } GROUP BY ?o } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?u ) WHERE { { ?a property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?a rdf:type ontology:Q811979 } UNION { ?a property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?a rdf:type ontology:Q27686 } } GROUP BY ?t } . FILTER ( ?u = ?w ) }
Heritage at Risk category C listed building
Min number of architectural structures and hotels have been Heritage at Risk and category C listed building
Heritage at Risk category C listed building
action argmin
action union
action find_reverse_tuple_counts
relation heritage status
type building
type architectural structure
action find_reverse_tuple_counts
relation heritage status
type building
type hotel
[[{'concept': 'architectural structure'}, {'concept': 'hotel'}], 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?w ) { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?v ) WHERE { { ?o rdf:type ontology:building . ?n rdf:type ontology:hotel . ?n property:heritage_status ?o } UNION { ?n property:heritage_status ?o . ?o rdf:type ontology:building . ?n rdf:type ontology:architectural_structure } } GROUP BY ?o } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?u ) WHERE { { ?a property:heritage_status ?t . ?t rdf:type ontology:building . ?a rdf:type ontology:architectural_structure } UNION { ?a property:heritage_status ?t . ?t rdf:type ontology:building . ?a rdf:type ontology:hotel } } GROUP BY ?t } . FILTER ( ?u = ?w ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q309048
P144 P495
Q838948
USER
Which works of art build on King Kong and originated in United States of America ?
AND((c(Q838948),P144,Q309048), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q309048
relation P144
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P144', 'Q309048'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?u WHERE { ?u property:P495 resource:Q30 . ?u property:P144 resource:Q309048 . ?u rdf:type ontology:Q838948 }
United States of America King Kong
action filter_type
action intersection
action find_reverse
entity King Kong
relation based on
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'based on', 'King Kong'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?u WHERE { ?u property:country_of_origin resource:United_States_of_America . ?u property:based_on resource:King_Kong . ?u rdf:type ontology:work_of_art }
[]
work of art
Q160215
SYSTEM
King Kong
Q160215
AND((c(Q838948),P144,Q309048), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q309048
relation P144
action find_reverse
entity Q30
relation P495
type Q838948
Kong [ANSWER] build on [ANSWER] and originated in United States of America
{'AND': [[{'concept': 'Q838948'}, 'P144', 'Q309048'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?u WHERE { ?u property:P495 resource:Q30 . ?u property:P144 resource:Q309048 . ?u rdf:type ontology:Q838948 }
King Kong
Kong King Kong build on King Kong and originated in United States of America
King Kong
action filter_type
action intersection
action find_reverse
entity King Kong
relation based on
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'based on', 'King Kong'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?u WHERE { ?u property:country_of_origin resource:United_States_of_America . ?u property:based_on resource:King_Kong . ?u rdf:type ontology:work_of_art }
[]