Simple Question (Direct)
Simple Question
Q445690
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Wiktor Ormicki ?
(Q445690,P27,c(Q15617994))
action filter_type
action find
entity Q445690
relation P27
type Q15617994
['Q445690', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q445690 property:P27 ?e }
Wiktor Ormicki
action filter_type
action find
entity Wiktor Ormicki
relation country of citizenship
type designation for an administrative territorial entity
['Wiktor Ormicki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wiktor_Ormicki property:country_of_citizenship ?e }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q445690,P27,c(Q15617994))
action filter_type
action find
entity Q445690
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Wiktor Ormicki
['Q445690', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q445690 property:P27 ?e }
Poland
Poland is the country of citizenship of Wiktor Ormicki
Poland
action filter_type
action find
entity Wiktor Ormicki
relation country of citizenship
type designation for an administrative territorial entity
['Wiktor Ormicki', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wiktor_Ormicki property:country_of_citizenship ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q445690
P19
Q486972
USER
Where was Wiktor Ormicki born ?
(Q445690,P19,c(Q486972))
action filter_type
action find
entity Q445690
relation P19
type Q486972
['Q445690', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q486972 . resource:Q445690 property:P19 ?o }
Wiktor Ormicki
action filter_type
action find
entity Wiktor Ormicki
relation place of birth
type human settlement
['Wiktor Ormicki', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:human_settlement . resource:Wiktor_Ormicki property:place_of_birth ?o }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q445690,P19,c(Q486972))
action filter_type
action find
entity Q445690
relation P19
type Q486972
Wiktor Ormicki was born in [ANSWER]
['Q445690', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q486972 . resource:Q445690 property:P19 ?o }
Kraków
Wiktor Ormicki was born in Kraków
Kraków
action filter_type
action find
entity Wiktor Ormicki
relation place of birth
type human settlement
['Wiktor Ormicki', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:human_settlement . resource:Wiktor_Ormicki property:place_of_birth ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q31487
P47
Q13220204
USER
Which administrative country subdivisions do that human settlement share a border with ?
(c(Q13220204),P47,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P47
type Q13220204
[{'concept': 'Q13220204'}, 'P47', 'Q31487']
SELECT DISTINCT ?j WHERE { ?j property:P47 resource:Q31487 . ?j rdf:type ontology:Q13220204 }
Kraków
action filter_type
action find_reverse
entity Kraków
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków']
SELECT DISTINCT ?j WHERE { ?j property:shares_border_with resource:Kraków . ?j rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q1164890 Q1147589 Q1147561
SYSTEM
Kraków County, Bochnia County, Proszowice County
Q1147589 Q1164890 Q609424 Q1147561
(c(Q13220204),P47,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P47
type Q13220204
That human settlement share a border with [ANSWERS]
[{'concept': 'Q13220204'}, 'P47', 'Q31487']
SELECT DISTINCT ?j WHERE { ?j property:P47 resource:Q31487 . ?j rdf:type ontology:Q13220204 }
Bochnia County Kraków County Wieliczka County Proszowice County
That human settlement share a border with Kraków County, Bochnia County and Proszowice County
Kraków County Bochnia County Proszowice County
action filter_type
action find_reverse
entity Kraków
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków']
SELECT DISTINCT ?j WHERE { ?j property:shares_border_with resource:Kraków . ?j rdf:type ontology:second-level_administrative_country_subdivision }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q13220204
USER
How many administrative country subdivisions have an adjacent border with that administrative country subdivision ?
(c(Q13220204),P47,Q1164890)
[{'concept': 'Q13220204'}, 'P47', 'Q1164890']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1164890 . ?z rdf:type ontology:Q13220204 }
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków County']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Kraków_County . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Quantitative|Count|Single entity type|Clarification
Q1147561
SYSTEM
Did you mean Proszowice County ?
(c(Q13220204),P47,Q1164890) (c(Q13220204),P47,Q1147589) (c(Q13220204),P47,Q1147561)
[ANSWER]
[{'concept': 'Q13220204'}, 'P47', 'Q1164890'] [{'concept': 'Q13220204'}, 'P47', 'Q1147589'] [{'concept': 'Q13220204'}, 'P47', 'Q1147561']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1164890 . ?z rdf:type ontology:Q13220204 }
Did you mean Proszowice County ?
Proszowice County
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków County'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Bochnia County'] [{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Proszowice County']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Kraków_County . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Kraków County. Could you tell me the answer for that?
(c(Q13220204),P47,Q1164890)
Q1164890
[{'concept': 'Q13220204'}, 'P47', 'Q1164890']
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków County']
[]
SYSTEM
7
Q1140756 Q1147561 Q609424 Q1340613 Q1340573 Q959228 Q1147610
(c(Q13220204),P47,Q1164890)
[ANSWER]
[{'concept': 'Q13220204'}, 'P47', 'Q1164890']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1164890 . ?z rdf:type ontology:Q13220204 }
Chrzanów County Proszowice County Wieliczka County Olkusz County Wadowice County Myślenice County Miechów County
7
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków County']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Kraków_County . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31487
P931
Q62447
USER
Which aerodrome is served by Kraków ?
(c(Q62447),P931,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q31487']
SELECT DISTINCT ?s WHERE { ?s property:P931 resource:Q31487 . ?s rdf:type ontology:Q62447 }
Kraków
action filter_type
action find_reverse
entity Kraków
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Kraków']
SELECT DISTINCT ?s WHERE { ?s property:place_served_by_airport resource:Kraków . ?s rdf:type ontology:aerodrome }
[]
aerodrome
Q581545
SYSTEM
John Paul II International Airport Kraków-Balice
Q581545
(c(Q62447),P931,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P931
type Q62447
Airport [ANSWER] is served by Kraków
[{'concept': 'Q62447'}, 'P931', 'Q31487']
SELECT DISTINCT ?s WHERE { ?s property:P931 resource:Q31487 . ?s rdf:type ontology:Q62447 }
John Paul II International Airport Kraków-Balice
Airport John Paul II International Airport Kraków-Balice is served by Kraków
John Paul II International Airport Kraków-Balice
action filter_type
action find_reverse
entity Kraków
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Kraków']
SELECT DISTINCT ?s WHERE { ?s property:place_served_by_airport resource:Kraków . ?s rdf:type ontology:aerodrome }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31487
P1376
Q13220204
USER
What has Kraków as its capital ?
(Q31487,P1376,c(Q13220204))
action filter_type
action find
entity Q31487
relation P1376
type Q13220204
['Q31487', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?s WHERE { resource:Q31487 property:P1376 ?s . ?s rdf:type ontology:Q13220204 }
Kraków
action filter_type
action find
entity Kraków
relation capital of
type second-level administrative country subdivision
['Kraków', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?s WHERE { resource:Kraków property:capital_of ?s . ?s rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q1164890
SYSTEM
Kraków County
Q1164890
(Q31487,P1376,c(Q13220204))
action filter_type
action find
entity Q31487
relation P1376
type Q13220204
[ANSWER] has Kraków as its capital
['Q31487', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?s WHERE { resource:Q31487 property:P1376 ?s . ?s rdf:type ontology:Q13220204 }
Kraków County
Kraków County has Kraków as its capital
Kraków County
action filter_type
action find
entity Kraków
relation capital of
type second-level administrative country subdivision
['Kraków', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?s WHERE { resource:Kraków property:capital_of ?s . ?s rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31487
P915
Q838948
USER
Which works of art were filmed at Kraków ?
(c(Q838948),P915,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q31487']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q838948 . ?u property:P915 resource:Q31487 }
Kraków
action filter_type
action find_reverse
entity Kraków
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Kraków']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:work_of_art . ?u property:filming_location resource:Kraków }
[]
work of art
Q3521099 Q483941 Q1130211
SYSTEM
The Grand Budapest Hotel, Schindler's List, The Double Life of Véronique
Q4235137 Q960920 Q7452223 Q6517835 Q4180239 Q483941 Q16588864 Q1634780 Q5383656 Q5068082 Q3023466 Q9383004 Q279678 Q2417978 Q7721042 Q9351237 Q714713 Q3521099 Q226193 Q1284393 Q9367598 Q2200470 Q1195506 Q1962773 Q7958520 Q1130211 Q2363975 Q3423416 Q3495085 Q9362359
(c(Q838948),P915,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P915
type Q838948
[ANSWERS] were filmed at Kraków
[{'concept': 'Q838948'}, 'P915', 'Q31487']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q838948 . ?u property:P915 resource:Q31487 }
Bad Luck The Deluge September Eleven 1683 Legenda Tatr Life as a Fatal Sexually Transmitted Disease Schindler's List The Mighty Angel Nights and Days Epitafium dla Barbary Radziwiłłówny Hero of the Year To Save the City WŚCIEKŁY Vinci Camera Buff The Calm Happy Man Katyń The Grand Budapest Hotel 33 Scenes from Life Edges of the Lord Entanglement With Fire and Sword Man of Marble How to Be Loved W biały dzień The Double Life of Véronique Colonel Wolodyjowski La Bottega dell'orefice The Karamazovs Three Stories
The Grand Budapest Hotel, Schindler's List and The Double Life of Véronique were filmed at Kraków
The Grand Budapest Hotel Schindler's List The Double Life of Véronique
action filter_type
action find_reverse
entity Kraków
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Kraków']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:work_of_art . ?u property:filming_location resource:Kraków }
[]
Clarification
Simple Question|Single Entity|Indirect
Q483941
P1441
Q6619679
USER
Which fictional humanoid appears in that work of art ?
(c(Q6619679),P1441,Q483941)
action filter_type
action find_reverse
entity Q483941
relation P1441
type Q6619679
[{'concept': 'Q6619679'}, 'P1441', 'Q483941']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q6619679 . ?q property:P1441 resource:Q483941 }
Schindler's List
action filter_type
action find_reverse
entity Schindler's List
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', "Schindler's List"]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:fictional_humanoid . ?q property:present_in_work resource:Schindler's_List }
[]
fictional humanoid
Clarification for simple ques.
Q1130211
SYSTEM
Did you mean The Double Life of Véronique ?
Q3521099 Q483941 Q1130211
(c(Q6619679),P1441,Q3521099) (c(Q6619679),P1441,Q483941) (c(Q6619679),P1441,Q1130211)
[ANSWER]
[{'concept': 'Q6619679'}, 'P1441', 'Q3521099'] [{'concept': 'Q6619679'}, 'P1441', 'Q483941'] [{'concept': 'Q6619679'}, 'P1441', 'Q1130211']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q6619679 . ?q property:P1441 resource:Q483941 }
The Grand Budapest Hotel Schindler's List The Double Life of Véronique
Did you mean The Double Life of Véronique ?
The Double Life of Véronique
[{'concept': 'fictional humanoid'}, 'present in work', 'The Grand Budapest Hotel'] [{'concept': 'fictional humanoid'}, 'present in work', "Schindler's List"] [{'concept': 'fictional humanoid'}, 'present in work', 'The Double Life of Véronique']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:fictional_humanoid . ?q property:present_in_work resource:Schindler's_List }
[]
Simple Question (Coreferenced)
USER
No, I meant Schindler's List. Could you tell me the answer for that?
(c(Q6619679),P1441,Q483941)
Q483941
[{'concept': 'Q6619679'}, 'P1441', 'Q483941']
[{'concept': 'fictional humanoid'}, 'present in work', "Schindler's List"]
[]
Q27518152
SYSTEM
Oskar Schindler
Q27518152
(c(Q6619679),P1441,Q483941)
action filter_type
action find_reverse
entity Q483941
relation P1441
type Q6619679
[ANSWER] appears in that work of art
[{'concept': 'Q6619679'}, 'P1441', 'Q483941']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q6619679 . ?q property:P1441 resource:Q483941 }
Oskar Schindler
Oskar Schindler appears in that work of art
Oskar Schindler
action filter_type
action find_reverse
entity Schindler's List
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', "Schindler's List"]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:fictional_humanoid . ?q property:present_in_work resource:Schindler's_List }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16475525 Q1147561
P17
Q15617994
USER
Which administrative territories are Proszowice County or Vareikiai located in ?
OR((Q1147561,P17,c(Q15617994)), (Q16475525,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1147561
relation P17
action find
entity Q16475525
relation P17
type Q15617994
{'OR': [['Q1147561', 'P17', {'concept': 'Q15617994'}], ['Q16475525', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q16475525 property:P17 ?n } UNION { resource:Q1147561 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Vareikiai Proszowice County
action filter_type
action union
action find
entity Proszowice County
relation country
action find
entity Vareikiai
relation country
type designation for an administrative territorial entity
{'OR': [['Proszowice County', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vareikiai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Vareikiai property:country ?n } UNION { resource:Proszowice_County property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q37 Q36
SYSTEM
Lithuania, Poland
Q37 Q36
OR((Q1147561,P17,c(Q15617994)), (Q16475525,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1147561
relation P17
action find
entity Q16475525
relation P17
type Q15617994
Proszowice County or Vareikiai are located in [ANSWERS]
{'OR': [['Q1147561', 'P17', {'concept': 'Q15617994'}], ['Q16475525', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q16475525 property:P17 ?n } UNION { resource:Q1147561 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Lithuania Poland
Proszowice County or Vareikiai are located in Lithuania and Poland
Lithuania Poland
action filter_type
action union
action find
entity Proszowice County
relation country
action find
entity Vareikiai
relation country
type designation for an administrative territorial entity
{'OR': [['Proszowice County', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vareikiai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Vareikiai property:country ?n } UNION { resource:Proszowice_County property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]