Simple Question (Direct)
Simple Question
Q3372809
P161
Q502895
USER
Which people starred in Service for Ladies ?
(Q3372809,P161,c(Q502895))
action filter_type
action find
entity Q3372809
relation P161
type Q502895
['Q3372809', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q3372809 property:P161 ?d . ?d rdf:type ontology:Q502895 }
Service for Ladies
action filter_type
action find
entity Service for Ladies
relation cast member
type common name
['Service for Ladies', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Service_for_Ladies property:cast_member ?d . ?d rdf:type ontology:common_name }
[]
common name
Q156178 Q3699925 Q230958
SYSTEM
Leslie Howard, Cyril Ritchard, Merle Oberon
Q230958 Q283178 Q458146 Q3699925 Q449877 Q3101618 Q3618088 Q156178
(Q3372809,P161,c(Q502895))
action filter_type
action find
entity Q3372809
relation P161
type Q502895
[ANSWERS] starred in Service for Ladies
['Q3372809', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q3372809 property:P161 ?d . ?d rdf:type ontology:Q502895 }
Merle Oberon Elizabeth Allan Martita Hunt Cyril Ritchard Benita Hume George Grossmith, Jr. Annie Esmond Leslie Howard
Leslie Howard, Cyril Ritchard and Merle Oberon starred in Service for Ladies
Leslie Howard Cyril Ritchard Merle Oberon
action filter_type
action find
entity Service for Ladies
relation cast member
type common name
['Service for Ladies', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Service_for_Ladies property:cast_member ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3372809
P344
Q502895
USER
Which person serves as the director of photography for Service for Ladies ?
(Q3372809,P344,c(Q502895))
action filter_type
action find
entity Q3372809
relation P344
type Q502895
['Q3372809', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q3372809 property:P344 ?o . ?o rdf:type ontology:Q502895 }
Service for Ladies
action filter_type
action find
entity Service for Ladies
relation director of photography
type common name
['Service for Ladies', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Service_for_Ladies property:director_of_photography ?o . ?o rdf:type ontology:common_name }
[]
common name
Q3379087
SYSTEM
Philip Tannura
Q3379087
(Q3372809,P344,c(Q502895))
action filter_type
action find
entity Q3372809
relation P344
type Q502895
[ANSWER] serves as the director of photography for Service for Ladies
['Q3372809', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q3372809 property:P344 ?o . ?o rdf:type ontology:Q502895 }
Philip Tannura
Philip Tannura serves as the director of photography for Service for Ladies
Philip Tannura
action filter_type
action find
entity Service for Ladies
relation director of photography
type common name
['Service for Ladies', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Service_for_Ladies property:director_of_photography ?o . ?o rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7934379
P3091
Q3745054 Q502895 Q502895
USER
Which people ride on a approximately the same number of horse breeds or people as Virginia Leng ?
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action count
action filter_multi_types
action find
entity Q7934379
relation P3091
type Q3745054
type Q502895
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } . ?q rdf:type ?c } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q7934379 property:P3091 ?b . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } } } } . FILTER ( ?i = ?m ) }
Virginia Leng
action approx
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
action count
action filter_multi_types
action find
entity Virginia Leng
relation mount
type horse breed
type common name
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:horse_breed ) ( ontology:common_name ) } . ?q rdf:type ?c } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Virginia_Leng property:mount ?b . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:horse_breed ) ( ontology:common_name ) } } } } . FILTER ( ?i = ?m ) }
[]
horse breed common name common name
Q34479 Q312391 Q151754
SYSTEM
Hirohito, Philippe Leclerc de Hauteclocque, Anne, Princess Royal
Q71451 Q64650 Q186164 Q7934379 Q262338 Q2965770 Q1038847 Q20240956 Q364502 Q3081121 Q25906162 Q355148 Q3035045 Q3351282 Q678324 Q151754 Q997380 Q84536 Q3056396 Q207535 Q2941011 Q3565906 Q942215 Q3385955 Q249233 Q364920 Q2162566 Q3573625 Q450267 Q2577320 Q4351964 Q317846 Q3501998 Q840001 Q3167944 Q6409976 Q3299860 Q19630255 Q444585 Q34479 Q312391 Q1061259 Q2041036 Q2966249 Q1739026 Q1081174 Q16104944 Q5908769 Q967780 Q488277 Q1332346 Q3147326 Q454614
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action count
action filter_multi_types
action find
entity Q7934379
relation P3091
type Q3745054
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } . ?q rdf:type ?c } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q7934379 property:P3091 ?b . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } } } } . FILTER ( ?i = ?m ) }
Franke Sloothaak Ingrid Klimke Pippa Funnell Virginia Leng Nicole Uphoff Criquette Head-Maarek Carl Hester Arnaud Serre David O'Connor Kieren Fallon Thibaut Vallette Adelinde Cornelissen Dominique Boeuf Olivier Peslier Jorma Kontio Anne, Princess Royal Yutaka Take Hugo Simon Eric Saint-Martin Roland Cash Asmussen Walter Swinburn Jean-Claude Van Geenberghe Pierre Levesque Kristina Sprehe Bruce Davidson Ryan Moore Yves Dreux Nadine Capellmann Wilhelm Melliger Björn Goop Lü Bu Stéphane Pasquier Christophe Soumillon Jean-Michel Bazire Kimberly Severson Matthieu Abrivard Léopold Verroken Ulla Salzgeber Hirohito Philippe Leclerc de Hauteclocque Johnny Murtagh Christophe Lemaire Christophe Gallier Kent Farrington Gérald Mossé Michael Page Örjan Kihlström Franck Nivard Jan Tops Mark Todd Ian Stark Fritz Ligges
Hirohito, Philippe Leclerc de Hauteclocque and Anne, Princess Royal ride on a approximately the same number of horse breeds or people as Virginia Leng
Hirohito Philippe Leclerc de Hauteclocque Anne, Princess Royal
action approx
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
action count
action filter_multi_types
action find
entity Virginia Leng
relation mount
type horse breed
type common name
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?c ) { ( ontology:horse_breed ) ( ontology:common_name ) } . ?q rdf:type ?c } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Virginia_Leng property:mount ?b . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:horse_breed ) ( ontology:common_name ) } } } } . FILTER ( ?i = ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q4351964
P3091
Q3745054 Q502895 Q502895
USER
And also tell me about Björn Goop?
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action count
action filter_multi_types
action find
entity Q4351964
relation P3091
type Q3745054
type Q502895
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?o ) WHERE { { ?j property:P3091 ?z . ?z rdf:type ontology:Q3745054 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P3091 ?z . ?j rdf:type ontology:Q502895 . ?z rdf:type ontology:Q502895 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q4351964 property:P3091 ?v . { { ?v rdf:type ontology:Q3745054 } UNION { ?v rdf:type ontology:Q502895 } } } } . FILTER ( ?o = ?b ) }
Björn Goop
action approx
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
action count
action filter_multi_types
action find
entity Björn Goop
relation mount
type horse breed
type common name
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?o ) WHERE { { ?j property:mount ?z . ?z rdf:type ontology:horse_breed . ?j rdf:type ontology:common_name } UNION { ?j property:mount ?z . ?j rdf:type ontology:common_name . ?z rdf:type ontology:common_name } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Björn_Goop property:mount ?v . { { ?v rdf:type ontology:horse_breed } UNION { ?v rdf:type ontology:common_name } } } } . FILTER ( ?o = ?b ) }
[]
horse breed common name common name
Q34479 Q312391 Q151754
SYSTEM
Hirohito, Philippe Leclerc de Hauteclocque, Anne, Princess Royal
Q71451 Q64650 Q186164 Q7934379 Q262338 Q2965770 Q1038847 Q20240956 Q364502 Q3081121 Q25906162 Q355148 Q3035045 Q3351282 Q678324 Q151754 Q997380 Q84536 Q3056396 Q207535 Q2941011 Q3565906 Q942215 Q3385955 Q249233 Q364920 Q2162566 Q3573625 Q450267 Q2577320 Q4351964 Q317846 Q3501998 Q840001 Q3167944 Q6409976 Q3299860 Q19630255 Q444585 Q34479 Q312391 Q1061259 Q2041036 Q2966249 Q1739026 Q1081174 Q16104944 Q5908769 Q967780 Q488277 Q1332346 Q3147326 Q454614
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action count
action filter_multi_types
action find
entity Q4351964
relation P3091
type Q3745054
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?o ) WHERE { { ?j property:P3091 ?z . ?z rdf:type ontology:Q3745054 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P3091 ?z . ?j rdf:type ontology:Q502895 . ?z rdf:type ontology:Q502895 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q4351964 property:P3091 ?v . { { ?v rdf:type ontology:Q3745054 } UNION { ?v rdf:type ontology:Q502895 } } } } . FILTER ( ?o = ?b ) }
Franke Sloothaak Ingrid Klimke Pippa Funnell Virginia Leng Nicole Uphoff Criquette Head-Maarek Carl Hester Arnaud Serre David O'Connor Kieren Fallon Thibaut Vallette Adelinde Cornelissen Dominique Boeuf Olivier Peslier Jorma Kontio Anne, Princess Royal Yutaka Take Hugo Simon Eric Saint-Martin Roland Cash Asmussen Walter Swinburn Jean-Claude Van Geenberghe Pierre Levesque Kristina Sprehe Bruce Davidson Ryan Moore Yves Dreux Nadine Capellmann Wilhelm Melliger Björn Goop Lü Bu Stéphane Pasquier Christophe Soumillon Jean-Michel Bazire Kimberly Severson Matthieu Abrivard Léopold Verroken Ulla Salzgeber Hirohito Philippe Leclerc de Hauteclocque Johnny Murtagh Christophe Lemaire Christophe Gallier Kent Farrington Gérald Mossé Michael Page Örjan Kihlström Franck Nivard Jan Tops Mark Todd Ian Stark Fritz Ligges
Hirohito Philippe Leclerc de Hauteclocque Anne, Princess Royal
action approx
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
action count
action filter_multi_types
action find
entity Björn Goop
relation mount
type horse breed
type common name
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?o ) WHERE { { ?j property:mount ?z . ?z rdf:type ontology:horse_breed . ?j rdf:type ontology:common_name } UNION { ?j property:mount ?z . ?j rdf:type ontology:common_name . ?z rdf:type ontology:common_name } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Björn_Goop property:mount ?v . { { ?v rdf:type ontology:horse_breed } UNION { ?v rdf:type ontology:common_name } } } } . FILTER ( ?o = ?b ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q34479
P166
Q193622 Q618779
USER
How many orders or awards were won by Hirohito ?
(Q34479,P166,c(Q193622)) (Q34479,P166,c(Q618779))
action count
action union
action filter_type
action find
entity Q34479
relation P166
type Q193622
action filter_type
action find
entity Q34479
relation P166
type Q618779
['Q34479', 'P166', {'concept': 'Q193622'}] ['Q34479', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ontology:Q618779 . resource:Q34479 property:P166 ?v } UNION { resource:Q34479 property:P166 ?v . ?v rdf:type ontology:Q193622 } }
Hirohito
action count
action union
action filter_type
action find
entity Hirohito
relation award received
type order
action filter_type
action find
entity Hirohito
relation award received
type award
['Hirohito', 'award received', {'concept': 'order'}] ['Hirohito', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ontology:award . resource:Hirohito property:award_received ?v } UNION { resource:Hirohito property:award_received ?v . ?v rdf:type ontology:order } }
[]
order award
SYSTEM
4
Q11288429 Q5361043 Q14539990 Q84020
(Q34479,P166,c(Q193622)) (Q34479,P166,c(Q618779))
action count
action union
action filter_type
action find
entity Q34479
relation P166
type Q193622
action filter_type
action find
entity Q34479
relation P166
type Q618779
[ANSWER]
['Q34479', 'P166', {'concept': 'Q193622'}] ['Q34479', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ontology:Q618779 . resource:Q34479 property:P166 ?v } UNION { resource:Q34479 property:P166 ?v . ?v rdf:type ontology:Q193622 } }
Grand Cordon of the Order of the Paulownia Flowers Grand Cordon of the Supreme Order of the Chrysanthemum Knight Grand Cross with Collar of the Order of Merit of the Italian Republic Order of the White Eagle
4
action count
action union
action filter_type
action find
entity Hirohito
relation award received
type order
action filter_type
action find
entity Hirohito
relation award received
type award
['Hirohito', 'award received', {'concept': 'order'}] ['Hirohito', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { ?v rdf:type ontology:award . resource:Hirohito property:award_received ?v } UNION { resource:Hirohito property:award_received ?v . ?v rdf:type ontology:order } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5543154 Q3379087
P19
Q56061
USER
Which administrative territories were Philip Tannura or George Paciullo born at ?
OR((Q3379087,P19,c(Q56061)), (Q5543154,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3379087
relation P19
action find
entity Q5543154
relation P19
type Q56061
{'OR': [['Q3379087', 'P19', {'concept': 'Q56061'}], ['Q5543154', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5543154 property:P19 ?s } UNION { resource:Q3379087 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
George Paciullo Philip Tannura
action filter_type
action union
action find
entity Philip Tannura
relation place of birth
action find
entity George Paciullo
relation place of birth
type administrative territorial entity
{'OR': [['Philip Tannura', 'place of birth', {'concept': 'administrative territorial entity'}], ['George Paciullo', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:George_Paciullo property:place_of_birth ?s } UNION { resource:Philip_Tannura property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q3130
SYSTEM
New York City, Sydney
Q60 Q3130
OR((Q3379087,P19,c(Q56061)), (Q5543154,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3379087
relation P19
action find
entity Q5543154
relation P19
type Q56061
Philip Tannura or George Paciullo were born in [ANSWERS]
{'OR': [['Q3379087', 'P19', {'concept': 'Q56061'}], ['Q5543154', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5543154 property:P19 ?s } UNION { resource:Q3379087 property:P19 ?s } } . ?s rdf:type ontology:Q56061 }
New York City Sydney
Philip Tannura or George Paciullo were born in New York City and Sydney
New York City Sydney
action filter_type
action union
action find
entity Philip Tannura
relation place of birth
action find
entity George Paciullo
relation place of birth
type administrative territorial entity
{'OR': [['Philip Tannura', 'place of birth', {'concept': 'administrative territorial entity'}], ['George Paciullo', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:George_Paciullo property:place_of_birth ?s } UNION { resource:Philip_Tannura property:place_of_birth ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3794517
P915
Q838948
USER
Were The Magistrate filmed at those administrative territories ?
(Q3794517,P915,Q60) (Q3794517,P915,Q3130)
action is_in
entity prev_answer
action find
entity Q3794517
relation P915
['Q3794517', 'P915', 'Q60'] ['Q3794517', 'P915', 'Q3130']
ASK WHERE { VALUES ( ?k ) { ( resource:Q60 ) ( resource:Q3130 ) } . resource:Q3794517 property:P915 ?k }
The Magistrate
action is_in
entity prev_answer
action find
entity The Magistrate
relation filming location
['The Magistrate', 'filming location', 'New York City'] ['The Magistrate', 'filming location', 'Sydney']
ASK WHERE { VALUES ( ?k ) { ( resource:New_York_City ) ( resource:Sydney ) } . resource:The_Magistrate property:filming_location ?k }
[]
work of art
SYSTEM
NO
(Q3794517,P915,Q60) (Q3794517,P915,Q3130)
action is_in
entity prev_answer
action find
entity Q3794517
relation P915
[ANSWER]
['Q3794517', 'P915', 'Q60'] ['Q3794517', 'P915', 'Q3130']
ASK WHERE { VALUES ( ?k ) { ( resource:Q60 ) ( resource:Q3130 ) } . resource:Q3794517 property:P915 ?k }
No
action is_in
entity prev_answer
action find
entity The Magistrate
relation filming location
['The Magistrate', 'filming location', 'New York City'] ['The Magistrate', 'filming location', 'Sydney']
ASK WHERE { VALUES ( ?k ) { ( resource:New_York_City ) ( resource:Sydney ) } . resource:The_Magistrate property:filming_location ?k }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3372809 Q5970961
P86
Q502895
USER
Did Percival Mackey compose Service for Ladies ?
(Q3372809,P86,Q5970961)
action is_in
entity Q5970961
action find
entity Q3372809
relation P86
['Q3372809', 'P86', 'Q5970961']
ASK WHERE { resource:Q3372809 property:P86 resource:Q5970961 }
Service for Ladies Percival Mackey
action is_in
entity Percival Mackey
action find
entity Service for Ladies
relation composer
['Service for Ladies', 'composer', 'Percival Mackey']
ASK WHERE { resource:Service_for_Ladies property:composer resource:Percival_Mackey }
[]
common name
SYSTEM
YES
(Q3372809,P86,Q5970961)
action is_in
entity Q5970961
action find
entity Q3372809
relation P86
[ANSWER]
['Q3372809', 'P86', 'Q5970961']
ASK WHERE { resource:Q3372809 property:P86 resource:Q5970961 }
Yes
action is_in
entity Percival Mackey
action find
entity Service for Ladies
relation composer
['Service for Ladies', 'composer', 'Percival Mackey']
ASK WHERE { resource:Service_for_Ladies property:composer resource:Percival_Mackey }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories have adopted approximately 1 holidays or people as their patron saint ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?y ) WHERE { { ?s property:P417 ?q . ?s rdf:type ontology:Q56061 . ?q rdf:type ontology:Q1445650 } UNION { ?s property:P417 ?q . ?s rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 } } GROUP BY ?s } }
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?y ) WHERE { { ?s property:patron_saint ?q . ?s rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:holiday } UNION { ?s property:patron_saint ?q . ?s rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?s } }
[]
holiday common name administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 1
[ANSWERS] have adopted approximately 1 holidays or people as their patron saint
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?y ) WHERE { { ?s property:P417 ?q . ?s rdf:type ontology:Q56061 . ?q rdf:type ontology:Q1445650 } UNION { ?s property:P417 ?q . ?s rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 } } GROUP BY ?s } }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan have adopted approximately 1 holidays or people as their patron saint
Moscow Madrid Milan
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?y ) WHERE { { ?s property:patron_saint ?q . ?s rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:holiday } UNION { ?s property:patron_saint ?q . ?s rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027362
P532
Q56061 Q2235308
USER
Which ship types have more number of administrative territories as their base harbour than Ellen Anne ?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027362
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { ?a property:P532 ?c . ?a rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 } GROUP BY ?a } . FILTER ( ?m > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:Q2235308 . resource:Q24027362 property:P532 ?l } } }
Ellen Anne
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Ellen Anne
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { ?a property:port_of_registry ?c . ?a rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?m > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:ship_type . resource:Ellen_Anne property:port_of_registry ?l } } }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027362
relation P532
type Q2235308
[ANSWERS] have more number of administrative territories as their base harbour than Ellen Anne
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { ?a property:P532 ?c . ?a rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 } GROUP BY ?a } . FILTER ( ?m > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:Q2235308 . resource:Q24027362 property:P532 ?l } } }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura, SS Maxim Gorkiy and RMS Aquitania have more number of administrative territories as their base harbour than Ellen Anne
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Ellen Anne
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?m ) WHERE { ?a property:port_of_registry ?c . ?a rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?m > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { ?l rdf:type ontology:ship_type . resource:Ellen_Anne property:port_of_registry ?l } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027215
P532
Q56061 Q2235308
USER
And what about Eleanor Francis?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027215
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?j ) WHERE { ?y property:P532 ?m . ?y rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ontology:Q2235308 . resource:Q24027215 property:P532 ?k } } . FILTER ( ?j > ?n ) }
Eleanor Francis
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Eleanor Francis
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?j ) WHERE { ?y property:port_of_registry ?m . ?y rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ontology:ship_type . resource:Eleanor_Francis property:port_of_registry ?k } } . FILTER ( ?j > ?n ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027215
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?j ) WHERE { ?y property:P532 ?m . ?y rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ontology:Q2235308 . resource:Q24027215 property:P532 ?k } } . FILTER ( ?j > ?n ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Eleanor Francis
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?j ) WHERE { ?y property:port_of_registry ?m . ?y rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ontology:ship_type . resource:Eleanor_Francis property:port_of_registry ?k } } . FILTER ( ?j > ?n ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q2937325 Q3794517
P161
Q502895
USER
Which people starred in The Magistrate and Capitaine Pantoufle ?
AND((Q3794517,P161,c(Q502895)), (Q2937325,P161,c(Q502895)))
action filter_type
action intersection
action find
entity Q3794517
relation P161
action find
entity Q2937325
relation P161
type Q502895
{'AND': [['Q3794517', 'P161', {'concept': 'Q502895'}], ['Q2937325', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q3794517 property:P161 ?m . resource:Q2937325 property:P161 ?m }
Capitaine Pantoufle The Magistrate
action filter_type
action intersection
action find
entity The Magistrate
relation cast member
action find
entity Capitaine Pantoufle
relation cast member
type common name
{'AND': [['The Magistrate', 'cast member', {'concept': 'common name'}], ['Capitaine Pantoufle', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:The_Magistrate property:cast_member ?m . resource:Capitaine_Pantoufle property:cast_member ?m }
[]
common name
Q1451173
SYSTEM
François Périer
Q1451173
AND((Q3794517,P161,c(Q502895)), (Q2937325,P161,c(Q502895)))
action filter_type
action intersection
action find
entity Q3794517
relation P161
action find
entity Q2937325
relation P161
type Q502895
[ANSWER] starred in The Magistrate and Capitaine Pantoufle
{'AND': [['Q3794517', 'P161', {'concept': 'Q502895'}], ['Q2937325', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q3794517 property:P161 ?m . resource:Q2937325 property:P161 ?m }
François Périer
François Périer starred in The Magistrate and Capitaine Pantoufle
François Périer
action filter_type
action intersection
action find
entity The Magistrate
relation cast member
action find
entity Capitaine Pantoufle
relation cast member
type common name
{'AND': [['The Magistrate', 'cast member', {'concept': 'common name'}], ['Capitaine Pantoufle', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:The_Magistrate property:cast_member ?m . resource:Capitaine_Pantoufle property:cast_member ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P19
Q56061
USER
How many administrative territories are the places of birth of that person ?
(Q1451173,P19,c(Q56061))
action count
action filter_type
action find
entity Q1451173
relation P19
type Q56061
['Q1451173', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ontology:Q56061 . resource:Q1451173 property:P19 ?s }
action count
action filter_type
action find
entity François Périer
relation place of birth
type administrative territorial entity
['François Périer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:François_Périer property:place_of_birth ?s }
[]
administrative territorial entity
SYSTEM
1
Q90
(Q1451173,P19,c(Q56061))
action count
action filter_type
action find
entity Q1451173
relation P19
type Q56061
[ANSWER]
['Q1451173', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ontology:Q56061 . resource:Q1451173 property:P19 ?s }
Paris
1
action count
action filter_type
action find
entity François Périer
relation place of birth
type administrative territorial entity
['François Périer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:François_Périer property:place_of_birth ?s }
[]