Simple Question (Direct)
Simple Question
Q1246645
P40
Q502895
USER
Which people are a successors of Friederike von Bodelschwingh ?
(Q1246645,P40,c(Q502895))
action filter_type
action find
entity Q1246645
relation P40
type Q502895
['Q1246645', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q1246645 property:P40 ?z }
Friederike von Bodelschwingh
action filter_type
action find
entity Friederike von Bodelschwingh
relation child
type common name
['Friederike von Bodelschwingh', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Friederike_von_Bodelschwingh property:child ?z }
[]
common name
Q875616 Q75275
SYSTEM
Ernst von Bodelschwingh-Velmede, Karl von Bodelschwingh-Velmede
Q875616 Q75275
(Q1246645,P40,c(Q502895))
action filter_type
action find
entity Q1246645
relation P40
type Q502895
[ANSWERS] are a successors of Friederike von Bodelschwingh
['Q1246645', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q1246645 property:P40 ?z }
Ernst von Bodelschwingh-Velmede Karl von Bodelschwingh-Velmede
Ernst von Bodelschwingh-Velmede and Karl von Bodelschwingh-Velmede are a successors of Friederike von Bodelschwingh
Ernst von Bodelschwingh-Velmede Karl von Bodelschwingh-Velmede
action filter_type
action find
entity Friederike von Bodelschwingh
relation child
type common name
['Friederike von Bodelschwingh', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Friederike_von_Bodelschwingh property:child ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q75275
P937
Q56061
USER
What is the location where that person worked ?
(Q75275,P937,c(Q56061))
action filter_type
action find
entity Q75275
relation P937
type Q56061
['Q75275', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q75275 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Karl von Bodelschwingh-Velmede
action filter_type
action find
entity Karl von Bodelschwingh-Velmede
relation work location
type administrative territorial entity
['Karl von Bodelschwingh-Velmede', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Karl_von_Bodelschwingh-Velmede property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q75275
SYSTEM
Did you mean Karl von Bodelschwingh-Velmede ?
Q875616 Q75275
(Q875616,P937,c(Q56061)) (Q75275,P937,c(Q56061))
[ANSWER]
['Q875616', 'P937', {'concept': 'Q56061'}] ['Q75275', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q75275 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Ernst von Bodelschwingh-Velmede Karl von Bodelschwingh-Velmede
Did you mean Karl von Bodelschwingh-Velmede ?
Karl von Bodelschwingh-Velmede
['Ernst von Bodelschwingh-Velmede', 'work location', {'concept': 'administrative territorial entity'}] ['Karl von Bodelschwingh-Velmede', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Karl_von_Bodelschwingh-Velmede property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q75275,P937,c(Q56061))
['Q75275', 'P937', {'concept': 'Q56061'}]
['Karl von Bodelschwingh-Velmede', 'work location', {'concept': 'administrative territorial entity'}]
[]
Q64
SYSTEM
Berlin
Q64
(Q75275,P937,c(Q56061))
action filter_type
action find
entity Q75275
relation P937
type Q56061
The location that person worked is in [ANSWER]
['Q75275', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q75275 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Berlin
The location that person worked is in Berlin
Berlin
action filter_type
action find
entity Karl von Bodelschwingh-Velmede
relation work location
type administrative territorial entity
['Karl von Bodelschwingh-Velmede', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Karl_von_Bodelschwingh-Velmede property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types are the registry port of exactly 2 administrative territories ?
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?g ) WHERE { ?u property:P532 ?d . ?u rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?u } . FILTER ( ?g = 2 ) }
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?g ) WHERE { ?u property:port_of_registry ?d . ?u rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?g = 2 ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q33209
SYSTEM
MS Azura, SS Maxim Gorkiy, Mary Celeste
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWERS] are the registry port of exactly 2 administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?g ) WHERE { ?u property:P532 ?d . ?u rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?u } . FILTER ( ?g = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
MS Azura, SS Maxim Gorkiy and Mary Celeste are the registry port of exactly 2 administrative territories
MS Azura SS Maxim Gorkiy Mary Celeste
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?g ) WHERE { ?u property:port_of_registry ?d . ?u rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?g = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q59593
P138
Q2235308 Q15700808
USER
Which urban unit definitions come from lesser number of ship types than Fortitude Valley ?
(c(Q15700808),P138,c(Q2235308))
action less
action find_tuple_counts
relation P138
type Q15700808
type Q2235308
action count
action filter_type
action find
entity Q59593
relation P138
type Q2235308
[{'concept': 'Q15700808'}, 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h rdf:type ontology:Q15700808 . ?o rdf:type ontology:Q2235308 . ?h property:P138 ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q59593 property:P138 ?n . ?n rdf:type ontology:Q2235308 } } . FILTER ( ?y < ?k ) }
Fortitude Valley
action less
action find_tuple_counts
relation named after
type urban unit definition
type ship type
action count
action filter_type
action find
entity Fortitude Valley
relation named after
type ship type
[{'concept': 'urban unit definition'}, 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h rdf:type ontology:urban_unit_definition . ?o rdf:type ontology:ship_type . ?h property:named_after ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Fortitude_Valley property:named_after ?n . ?n rdf:type ontology:ship_type } } . FILTER ( ?y < ?k ) }
[]
ship type urban unit definition
Q7989345 Q7626934 Q1421389
SYSTEM
Weston, Stuart Park, Fitzroy
Q1594002 Q1421389 Q7026520 Q5377277 Q14935141 Q692763 Q7338840 Q2896400 Q4476251 Q949824 Q7989345 Q7626934 Q6391446 Q7641406 Q6271274 Q673418 Q1012058 Q6722652 Q4894915 Q7185600 Q22525629 Q763513 Q2651034 Q2918153 Q6480572 Q5167620 Q660135 Q1521059 Q4999948 Q482055 Q2918803 Q2918802 Q7810475 Q1160037 Q5184107 Q5598698 Q516923 Q5148151 Q7002958 Q1003684 Q5102084 Q2900456 Q256948 Q291305 Q12060435 Q4977003 Q5455716 Q5125861 Q4942699 Q5315441 Q2236090 Q256629 Q443946 Q7244455 Q1001743 Q17007340 Q6938213 Q1011478 Q7330307 Q905081 Q5679492 Q910857 Q7968787 Q2975743 Q6813667 Q4530072 Q617029 Q3764261 Q1004189 Q652017 Q7899493 Q5135073 Q12736886 Q1228554 Q24239665 Q4976165 Q257618 Q5048437 Q2895133 Q538592 Q1109698 Q4455973 Q8026553 Q591771 Q860086 Q7617547 Q4972237 Q532284 Q2918677 Q7798372 Q1200355 Q1109824 Q4155281 Q6933244 Q994135 Q848872 Q520022 Q5166874 Q1012076 Q13420360 Q5211219 Q7141839
(c(Q15700808),P138,c(Q2235308))
action less
action find_tuple_counts
relation P138
type Q15700808
type Q2235308
action count
action filter_type
action find
entity Q59593
relation P138
type Q2235308
[ANSWERS] come from lesser number of ship types than Fortitude Valley
[{'concept': 'Q15700808'}, 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h rdf:type ontology:Q15700808 . ?o rdf:type ontology:Q2235308 . ?h property:P138 ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q59593 property:P138 ?n . ?n rdf:type ontology:Q2235308 } } . FILTER ( ?y < ?k ) }
Heidelberg Fitzroy Nicholls Enfield Fawkner Bonner Rivett Chifley Watson Sturt Weston Stuart Park Kensington Gardens Sunshine Tempe Bondi Beach Williamstown Macarthur Berserker Phillip Gillen Cremorne Alphington La Perouse Lalor Coombs Florey Tullamarine Burnley Acton Potts Point Camperdown Tiwi Lyons Cremorne Great Barr Evatt Colonel Light Gardens Neutral Bay Fraser Chisholm Darling Point Hackett Banks Holroyd Bruce Fitzroy North Clapham Bonython Dunlop Bankstown Scullin Altona Princes Hill Fisher Denman Prospect Murdoch Darlinghurst Richardson Dickson Hassall Grove Duffy Waramanga Kingsford Melrose Park Ainslie Holder Gilberton Frösön Crace Upwey Clontarf Normanhurst Palmerston Eaton Brown Hill Creek Waterloo Casey Phillip Bay Curtin Collingwood Turner Winthrop Albert Park Chapman Stirling Broadmeadows Chifley Waverley Throsby Derrimut Collinsvale Downer Muirhead Brunswick Braddon Forde Cook Richmond Barton Dallas Pascoe Vale
Weston, Stuart Park and Fitzroy come from lesser number of ship types than Fortitude Valley
Weston Stuart Park Fitzroy
action less
action find_tuple_counts
relation named after
type urban unit definition
type ship type
action count
action filter_type
action find
entity Fortitude Valley
relation named after
type ship type
[{'concept': 'urban unit definition'}, 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?y ) WHERE { ?h rdf:type ontology:urban_unit_definition . ?o rdf:type ontology:ship_type . ?h property:named_after ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Fortitude_Valley property:named_after ?n . ?n rdf:type ontology:ship_type } } . FILTER ( ?y < ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P272
Q838948
USER
Which works of art were produced by Berlin ?
(c(Q838948),P272,Q64)
action filter_type
action find_reverse
entity Q64
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q64']
SELECT DISTINCT ?a WHERE { ?a property:P272 resource:Q64 . ?a rdf:type ontology:Q838948 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Berlin']
SELECT DISTINCT ?a WHERE { ?a property:production_company resource:Berlin . ?a rdf:type ontology:work_of_art }
[]
work of art
Q575980 Q3960185 Q3998898
SYSTEM
Vampyros Lesbos, She Killed in Ecstasy, Sons of Trinity
Q575980 Q3960185 Q3998898
(c(Q838948),P272,Q64)
action filter_type
action find_reverse
entity Q64
relation P272
type Q838948
Vampyros Lesbos, She killed in Ecstasy and Sons of Trinity were produced by Berlin
[{'concept': 'Q838948'}, 'P272', 'Q64']
SELECT DISTINCT ?a WHERE { ?a property:P272 resource:Q64 . ?a rdf:type ontology:Q838948 }
Vampyros Lesbos She Killed in Ecstasy Sons of Trinity
Vampyros Lesbos, She killed in Ecstasy and Sons of Trinity were produced by Berlin
Vampyros Lesbos She Killed in Ecstasy Sons of Trinity
action filter_type
action find_reverse
entity Berlin
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Berlin']
SELECT DISTINCT ?a WHERE { ?a property:production_company resource:Berlin . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q575980 Q3960185 Q3998898
P58
Q502895
USER
Which people wrote the script for those works of art ?
(Q575980,P58,c(Q502895)) (Q3960185,P58,c(Q502895)) (Q3998898,P58,c(Q502895))
action filter_type
action find
entity prev_answer
relation P58
type Q502895
['Q575980', 'P58', {'concept': 'Q502895'}] ['Q3960185', 'P58', {'concept': 'Q502895'}] ['Q3998898', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Q575980 ) ( resource:Q3960185 ) ( resource:Q3998898 ) } . ?f rdf:type ontology:Q502895 . ?l property:P58 ?f }
Vampyros Lesbos She Killed in Ecstasy Sons of Trinity
action filter_type
action find
entity prev_answer
relation screenwriter
type common name
['Vampyros Lesbos', 'screenwriter', {'concept': 'common name'}] ['She Killed in Ecstasy', 'screenwriter', {'concept': 'common name'}] ['Sons of Trinity', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Vampyros_Lesbos ) ( resource:She_Killed_in_Ecstasy ) ( resource:Sons_of_Trinity ) } . ?f rdf:type ontology:common_name . ?l property:screenwriter ?f }
[]
common name
Q353758 Q353758 Q938708
SYSTEM
Jesús Franco for 1st, 2nd, Enzo Barboni for 3rd
Q353758 Q353758 Q938708
(Q575980,P58,c(Q502895)) (Q3960185,P58,c(Q502895)) (Q3998898,P58,c(Q502895))
action filter_type
action find
entity prev_answer
relation P58
type Q502895
[ANSWERS]
['Q575980', 'P58', {'concept': 'Q502895'}] ['Q3960185', 'P58', {'concept': 'Q502895'}] ['Q3998898', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Q575980 ) ( resource:Q3960185 ) ( resource:Q3998898 ) } . ?f rdf:type ontology:Q502895 . ?l property:P58 ?f }
Jesús Franco Jesús Franco Enzo Barboni
Jesús Franco, Jesús Franco and Enzo Barboni wrote the script for those works of art
Jesús Franco Jesús Franco Enzo Barboni
action filter_type
action find
entity prev_answer
relation screenwriter
type common name
['Vampyros Lesbos', 'screenwriter', {'concept': 'common name'}] ['She Killed in Ecstasy', 'screenwriter', {'concept': 'common name'}] ['Sons of Trinity', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?l ) { ( resource:Vampyros_Lesbos ) ( resource:She_Killed_in_Ecstasy ) ( resource:Sons_of_Trinity ) } . ?f rdf:type ontology:common_name . ?l property:screenwriter ?f }
[]
Clarification
Simple Question|Single Entity|Indirect
Q575980
P161
Q502895
USER
Which people starred in that work of art ?
(Q575980,P161,c(Q502895))
action filter_type
action find
entity Q575980
relation P161
type Q502895
['Q575980', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q575980 property:P161 ?m . ?m rdf:type ontology:Q502895 }
Vampyros Lesbos
action filter_type
action find
entity Vampyros Lesbos
relation cast member
type common name
['Vampyros Lesbos', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Vampyros_Lesbos property:cast_member ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q575980
SYSTEM
Did you mean Vampyros Lesbos ?
Q353758 Q353758 Q938708
(Q353758,P161,c(Q502895)) (Q353758,P161,c(Q502895)) (Q938708,P161,c(Q502895))
[ANSWER]
['Q353758', 'P161', {'concept': 'Q502895'}] ['Q353758', 'P161', {'concept': 'Q502895'}] ['Q938708', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q575980 property:P161 ?m . ?m rdf:type ontology:Q502895 }
Jesús Franco Jesús Franco Enzo Barboni
Did you mean Vampyros Lesbos ?
Vampyros Lesbos
['Jesús Franco', 'cast member', {'concept': 'common name'}] ['Jesús Franco', 'cast member', {'concept': 'common name'}] ['Enzo Barboni', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Vampyros_Lesbos property:cast_member ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q575980,P161,c(Q502895))
['Q575980', 'P161', {'concept': 'Q502895'}]
['Vampyros Lesbos', 'cast member', {'concept': 'common name'}]
[]
Q353758 Q266319 Q934270
SYSTEM
Jesús Franco, Soledad Miranda, Dennis Price
Q446280 Q353758 Q266319 Q200507 Q934270
(Q575980,P161,c(Q502895))
action filter_type
action find
entity Q575980
relation P161
type Q502895
[ANSWERS] starred in that work of art
['Q575980', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q575980 property:P161 ?m . ?m rdf:type ontology:Q502895 }
Ewa Strömberg Jesús Franco Soledad Miranda Paul Müller Dennis Price
Jesús Franco, Soledad Miranda and Dennis Price starred in that work of art
Jesús Franco Soledad Miranda Dennis Price
action filter_type
action find
entity Vampyros Lesbos
relation cast member
type common name
['Vampyros Lesbos', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Vampyros_Lesbos property:cast_member ?m . ?m rdf:type ontology:common_name }
[]