Simple Question (Direct)
Simple Question
Q3579169
P734
Q82799
USER
Who has the surname Édith Bouvier ?
(Q3579169,P734,c(Q82799))
action filter_type
action find
entity Q3579169
relation P734
type Q82799
['Q3579169', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q3579169 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Édith Bouvier
action filter_type
action find
entity Édith Bouvier
relation family name
type name
['Édith Bouvier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Édith_Bouvier property:family_name ?g . ?g rdf:type ontology:name }
[]
name
Q23599481
SYSTEM
Bouvier
Q23599481
(Q3579169,P734,c(Q82799))
action filter_type
action find
entity Q3579169
relation P734
type Q82799
[ANSWER] has the surname Édith [ANSWER]
['Q3579169', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q3579169 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Bouvier
Bouvier has the surname Édith Bouvier
Bouvier
action filter_type
action find
entity Édith Bouvier
relation family name
type name
['Édith Bouvier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Édith_Bouvier property:family_name ?g . ?g rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3579169
P108
Q11032
USER
Who is the employer of that person ?
(Q23599481,P108,c(Q11032))
action filter_type
action find
entity Q3579169
relation P108
type Q11032
['Q23599481', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?d WHERE { resource:Q3579169 property:P108 ?d . ?d rdf:type ontology:Q11032 }
Édith Bouvier
action filter_type
action find
entity Édith Bouvier
relation employer
type newspaper
['Bouvier', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?d WHERE { resource:Édith_Bouvier property:employer ?d . ?d rdf:type ontology:newspaper }
[]
newspaper
Q216047
SYSTEM
Le Figaro
Q216047
(Q23599481,P108,c(Q11032))
action filter_type
action find
entity Q3579169
relation P108
type Q11032
The employer of that person is editor [ANSWER]
['Q23599481', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?d WHERE { resource:Q3579169 property:P108 ?d . ?d rdf:type ontology:Q11032 }
Le Figaro
The employer of that person is editor Le Figaro
Le Figaro
action filter_type
action find
entity Édith Bouvier
relation employer
type newspaper
['Bouvier', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?d WHERE { resource:Édith_Bouvier property:employer ?d . ?d rdf:type ontology:newspaper }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2034058
P655
Q502895 Q2342494 Q7725634
USER
How many people translated greater number of collectables and literary works than V. V. Adoratsky ?
(c(Q2342494)|c(Q7725634),P655,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q2034058
relation P655
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?o . VALUES ( ?o ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P655 resource:Q2034058 . { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?j > ?c ) }
V. V. Adoratsky
action count
action greater
action union
action find_reverse_tuple_counts
relation translator
type common name
type collectable
action find_reverse_tuple_counts
relation translator
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity V. V. Adoratsky
relation translator
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?o . VALUES ( ?o ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:translator resource:V._V._Adoratsky . { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } . FILTER ( ?j > ?c ) }
[]
common name collectable literary work
SYSTEM
16
Q6180799 Q461104 Q12749 Q6536944 Q711869 Q7387473 Q18543209 Q8191787 Q8020113 Q234530 Q2157568 Q1705960 Q12026401 Q12883 Q4800649 Q1969016
(c(Q2342494)|c(Q7725634),P655,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q2034058
relation P655
type Q2342494
type Q7725634
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?o . VALUES ( ?o ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P655 resource:Q2034058 . { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?j > ?c ) }
Jeremiah Curtin Jaroslav Vrchlický Kazimierz Bein Lewis Page Mercier Arthur Waley S. Foster Damon Irmtraud Zimmermann-Göllheim Michael Kandel William Weaver Emma Orczy Robert Hillyer Josef Václav Sládek Josef Mikuláš Boleslavský Gerrit Berveling Arthur Wesley Wheen Alexander Teixeira de Mattos
16
action count
action greater
action union
action find_reverse_tuple_counts
relation translator
type common name
type collectable
action find_reverse_tuple_counts
relation translator
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity V. V. Adoratsky
relation translator
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?o . VALUES ( ?o ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:translator resource:V._V._Adoratsky . { ?u rdf:type ?n . VALUES ( ?n ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } . FILTER ( ?j > ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q15732079
P655
Q502895 Q2342494 Q7725634
USER
And what about Alexandra Mexin?
(c(Q2342494)|c(Q7725634),P655,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q15732079
relation P655
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:P655 ?f . ?f rdf:type ontology:Q502895 . ?t rdf:type ontology:Q2342494 } UNION { ?t property:P655 ?f . ?f rdf:type ontology:Q502895 . ?t rdf:type ontology:Q7725634 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P655 resource:Q15732079 . { { ?q rdf:type ontology:Q2342494 } UNION { ?q rdf:type ontology:Q7725634 } } } } . FILTER ( ?z > ?y ) }
Alexandra Mexin
action count
action greater
action union
action find_reverse_tuple_counts
relation translator
type common name
type collectable
action find_reverse_tuple_counts
relation translator
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Alexandra Mexin
relation translator
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:translator ?f . ?f rdf:type ontology:common_name . ?t rdf:type ontology:collectable } UNION { ?t property:translator ?f . ?f rdf:type ontology:common_name . ?t rdf:type ontology:literary_work } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:translator resource:Alexandra_Mexin . { { ?q rdf:type ontology:collectable } UNION { ?q rdf:type ontology:literary_work } } } } . FILTER ( ?z > ?y ) }
[]
common name collectable literary work
SYSTEM
16
Q6180799 Q461104 Q12749 Q6536944 Q711869 Q7387473 Q18543209 Q8191787 Q8020113 Q234530 Q2157568 Q1705960 Q12026401 Q12883 Q4800649 Q1969016
(c(Q2342494)|c(Q7725634),P655,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P655
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q15732079
relation P655
type Q2342494
type Q7725634
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:P655 ?f . ?f rdf:type ontology:Q502895 . ?t rdf:type ontology:Q2342494 } UNION { ?t property:P655 ?f . ?f rdf:type ontology:Q502895 . ?t rdf:type ontology:Q7725634 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P655 resource:Q15732079 . { { ?q rdf:type ontology:Q2342494 } UNION { ?q rdf:type ontology:Q7725634 } } } } . FILTER ( ?z > ?y ) }
Jeremiah Curtin Jaroslav Vrchlický Kazimierz Bein Lewis Page Mercier Arthur Waley S. Foster Damon Irmtraud Zimmermann-Göllheim Michael Kandel William Weaver Emma Orczy Robert Hillyer Josef Václav Sládek Josef Mikuláš Boleslavský Gerrit Berveling Arthur Wesley Wheen Alexander Teixeira de Mattos
16
action count
action greater
action union
action find_reverse_tuple_counts
relation translator
type common name
type collectable
action find_reverse_tuple_counts
relation translator
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Alexandra Mexin
relation translator
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?z ) WHERE { { ?t property:translator ?f . ?f rdf:type ontology:common_name . ?t rdf:type ontology:collectable } UNION { ?t property:translator ?f . ?f rdf:type ontology:common_name . ?t rdf:type ontology:literary_work } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:translator resource:Alexandra_Mexin . { { ?q rdf:type ontology:collectable } UNION { ?q rdf:type ontology:literary_work } } } } . FILTER ( ?z > ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1284738 Q216047
P291 P19
Q56061
USER
Which administrative territories are the places of publication of Le Figaro or were Krzysztof Wodiczko born in ?
OR((Q216047,P291,c(Q56061)), (Q1284738,P19,c(Q56061)))
action filter_type
action union
action find
entity Q216047
relation P291
action find
entity Q1284738
relation P19
type Q56061
{'OR': [['Q216047', 'P291', {'concept': 'Q56061'}], ['Q1284738', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1284738 property:P19 ?w } UNION { resource:Q216047 property:P291 ?w } } . ?w rdf:type ontology:Q56061 }
Krzysztof Wodiczko Le Figaro
action filter_type
action union
action find
entity Le Figaro
relation place of publication
action find
entity Krzysztof Wodiczko
relation place of birth
type administrative territorial entity
{'OR': [['Le Figaro', 'place of publication', {'concept': 'administrative territorial entity'}], ['Krzysztof Wodiczko', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Krzysztof_Wodiczko property:place_of_birth ?w } UNION { resource:Le_Figaro property:place_of_publication ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q90
SYSTEM
Warsaw, Paris
Q270 Q90
OR((Q216047,P291,c(Q56061)), (Q1284738,P19,c(Q56061)))
action filter_type
action union
action find
entity Q216047
relation P291
action find
entity Q1284738
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q216047', 'P291', {'concept': 'Q56061'}], ['Q1284738', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1284738 property:P19 ?w } UNION { resource:Q216047 property:P291 ?w } } . ?w rdf:type ontology:Q56061 }
Warsaw Paris
Which administrative territories are the places of publication of Le Figaro or were Krzysztof Wodiczko born in
Warsaw Paris
action filter_type
action union
action find
entity Le Figaro
relation place of publication
action find
entity Krzysztof Wodiczko
relation place of birth
type administrative territorial entity
{'OR': [['Le Figaro', 'place of publication', {'concept': 'administrative territorial entity'}], ['Krzysztof Wodiczko', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Krzysztof_Wodiczko property:place_of_birth ?w } UNION { resource:Le_Figaro property:place_of_publication ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q342889
P937
Q502895
USER
Does Adam Jerzy Czartoryski work at those administrative territories ?
(Q342889,P937,Q270) (Q342889,P937,Q90)
action is_in
entity prev_answer
action find
entity Q342889
relation P937
['Q342889', 'P937', 'Q270'] ['Q342889', 'P937', 'Q90']
ASK WHERE { resource:Q342889 property:P937 ?g . VALUES ( ?g ) { ( resource:Q270 ) ( resource:Q90 ) } }
Adam Jerzy Czartoryski
action is_in
entity prev_answer
action find
entity Adam Jerzy Czartoryski
relation work location
['Adam Jerzy Czartoryski', 'work location', 'Warsaw'] ['Adam Jerzy Czartoryski', 'work location', 'Paris']
ASK WHERE { resource:Adam_Jerzy_Czartoryski property:work_location ?g . VALUES ( ?g ) { ( resource:Warsaw ) ( resource:Paris ) } }
[]
common name
SYSTEM
YES
(Q342889,P937,Q270) (Q342889,P937,Q90)
action is_in
entity prev_answer
action find
entity Q342889
relation P937
[ANSWER]
['Q342889', 'P937', 'Q270'] ['Q342889', 'P937', 'Q90']
ASK WHERE { resource:Q342889 property:P937 ?g . VALUES ( ?g ) { ( resource:Q270 ) ( resource:Q90 ) } }
Yes
action is_in
entity prev_answer
action find
entity Adam Jerzy Czartoryski
relation work location
['Adam Jerzy Czartoryski', 'work location', 'Warsaw'] ['Adam Jerzy Czartoryski', 'work location', 'Paris']
ASK WHERE { resource:Adam_Jerzy_Czartoryski property:work_location ?g . VALUES ( ?g ) { ( resource:Warsaw ) ( resource:Paris ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P166
Q618779
USER
Which award was received by Paris ?
(Q90,P166,c(Q618779))
action filter_type
action find
entity Q90
relation P166
type Q618779
['Q90', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q618779 . resource:Q90 property:P166 ?a }
Paris
action filter_type
action find
entity Paris
relation award received
type award
['Paris', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:award . resource:Paris property:award_received ?a }
[]
award
Q2727598
SYSTEM
Croix de guerre 1914–1918
Q2727598
(Q90,P166,c(Q618779))
action filter_type
action find
entity Q90
relation P166
type Q618779
France [ANSWER] was received by Paris
['Q90', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q618779 . resource:Q90 property:P166 ?a }
Croix de guerre 1914–1918
France Croix de guerre 1914–1918 was received by Paris
Croix de guerre 1914–1918
action filter_type
action find
entity Paris
relation award received
type award
['Paris', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:award . resource:Paris property:award_received ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P206
Q355304
USER
Which watercourse is located next to Paris ?
(Q90,P206,c(Q355304))
action filter_type
action find
entity Q90
relation P206
type Q355304
['Q90', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { resource:Q90 property:P206 ?g . ?g rdf:type ontology:Q355304 }
Paris
action filter_type
action find
entity Paris
relation located next to body of water
type watercourse
['Paris', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { resource:Paris property:located_next_to_body_of_water ?g . ?g rdf:type ontology:watercourse }
[]
watercourse
Q1471
SYSTEM
Seine
Q1471
(Q90,P206,c(Q355304))
action filter_type
action find
entity Q90
relation P206
type Q355304
Paris [ANSWER] is located next to Paris
['Q90', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { resource:Q90 property:P206 ?g . ?g rdf:type ontology:Q355304 }
Seine
Paris Seine is located next to Paris
Seine
action filter_type
action find
entity Paris
relation located next to body of water
type watercourse
['Paris', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { resource:Paris property:located_next_to_body_of_water ?g . ?g rdf:type ontology:watercourse }
[]