Simple Question (Direct)
Simple Question
Q1115664
P69
Q1935049
USER
What is the military school where Hélie de Saint Marc was educated ?
(Q1115664,P69,c(Q1935049))
action filter_type
action find
entity Q1115664
relation P69
type Q1935049
['Q1115664', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?g WHERE { resource:Q1115664 property:P69 ?g . ?g rdf:type ontology:Q1935049 }
Hélie de Saint Marc
action filter_type
action find
entity Hélie de Saint Marc
relation educated at
type military school
['Hélie de Saint Marc', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?g WHERE { resource:Hélie_de_Saint_Marc property:educated_at ?g . ?g rdf:type ontology:military_school }
[]
military school
Q1132066
SYSTEM
Ecole Spéciale Militaire de Saint-Cyr
Q1132066
(Q1115664,P69,c(Q1935049))
action filter_type
action find
entity Q1115664
relation P69
type Q1935049
The military school Hélie de Saint Marc was educated is the [ANSWER]
['Q1115664', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?g WHERE { resource:Q1115664 property:P69 ?g . ?g rdf:type ontology:Q1935049 }
Ecole Spéciale Militaire de Saint-Cyr
The military school Hélie de Saint Marc was educated is the Ecole Spéciale Militaire de Saint-Cyr
Ecole Spéciale Militaire de Saint-Cyr
action filter_type
action find
entity Hélie de Saint Marc
relation educated at
type military school
['Hélie de Saint Marc', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?g WHERE { resource:Hélie_de_Saint_Marc property:educated_at ?g . ?g rdf:type ontology:military_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1115664
P166
Q618779
USER
What were awarded to Hélie de Saint Marc ?
(Q1115664,P166,c(Q618779))
action filter_type
action find
entity Q1115664
relation P166
type Q618779
['Q1115664', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?q WHERE { resource:Q1115664 property:P166 ?q . ?q rdf:type ontology:Q618779 }
Hélie de Saint Marc
action filter_type
action find
entity Hélie de Saint Marc
relation award received
type award
['Hélie de Saint Marc', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?q WHERE { resource:Hélie_de_Saint_Marc property:award_received ?q . ?q rdf:type ontology:award }
[]
award
Q1115570 Q2547676 Q3332267
SYSTEM
Prix littéraire de l'armée de terre - Erwan Bergot, Croix de guerre 1939–1945, Médaille commémorative de la guerre 1939–1945
Q3332267 Q3332260 Q3332272 Q3003642 Q3332268 Q1115570 Q3151570 Q2547676 Q670473 Q3141876
(Q1115664,P166,c(Q618779))
action filter_type
action find
entity Q1115664
relation P166
type Q618779
The [ANSWERS] were awarded to Hélie de Saint Marc
['Q1115664', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?q WHERE { resource:Q1115664 property:P166 ?q . ?q rdf:type ontology:Q618779 }
Médaille commémorative de la guerre 1939–1945 Indochina Campaign commemorative medal North Africa Security and Order Operations Commemorative Medal Croix du combattant Middle East operations commemorative medal (1956) Prix littéraire de l'armée de terre - Erwan Bergot Insignia for the Military Wounded Croix de guerre 1939–1945 Médaille de la Résistance Croix de guerre des théâtres d'opérations extérieures
The Prix littéraire de l'armée de terre - Erwan Bergot, Croix de guerre 1939–1945 and Médaille commémorative de la guerre 1939–1945 were awarded to Hélie de Saint Marc
Prix littéraire de l'armée de terre - Erwan Bergot Croix de guerre 1939–1945 Médaille commémorative de la guerre 1939–1945
action filter_type
action find
entity Hélie de Saint Marc
relation award received
type award
['Hélie de Saint Marc', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?q WHERE { resource:Hélie_de_Saint_Marc property:award_received ?q . ?q rdf:type ontology:award }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2547676
P361
Q198
USER
What is that award a component of ?
(Q2547676,P361,c(Q198))
action filter_type
action find
entity Q2547676
relation P361
type Q198
['Q2547676', 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?l WHERE { resource:Q2547676 property:P361 ?l . ?l rdf:type ontology:Q198 }
Croix de guerre 1939–1945
action filter_type
action find
entity Croix de guerre 1939–1945
relation part of
type war
['Croix de guerre 1939–1945', 'part of', {'concept': 'war'}]
SELECT DISTINCT ?l WHERE { resource:Croix_de_guerre_1939–1945 property:part_of ?l . ?l rdf:type ontology:war }
[]
war
Clarification for simple ques.
Q1115570
SYSTEM
Did you mean Prix littéraire de l'armée de terre - Erwan Bergot ?
Q1115570 Q2547676 Q3332267
(Q1115570,P361,c(Q198)) (Q2547676,P361,c(Q198)) (Q3332267,P361,c(Q198))
[ANSWER]
['Q1115570', 'P361', {'concept': 'Q198'}] ['Q2547676', 'P361', {'concept': 'Q198'}] ['Q3332267', 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?l WHERE { resource:Q2547676 property:P361 ?l . ?l rdf:type ontology:Q198 }
Prix littéraire de l'armée de terre - Erwan Bergot Croix de guerre 1939–1945 Médaille commémorative de la guerre 1939–1945
Did you mean Prix littéraire de l'armée de terre - Erwan Bergot ?
Prix littéraire de l'armée de terre - Erwan Bergot
["Prix littéraire de l'armée de terre - Erwan Bergot", 'part of', {'concept': 'war'}] ['Croix de guerre 1939–1945', 'part of', {'concept': 'war'}] ['Médaille commémorative de la guerre 1939–1945', 'part of', {'concept': 'war'}]
SELECT DISTINCT ?l WHERE { resource:Croix_de_guerre_1939–1945 property:part_of ?l . ?l rdf:type ontology:war }
[]
Simple Question (Coreferenced)
USER
No, I meant Croix de guerre 1939–1945. Could you tell me the answer for that?
(Q2547676,P361,c(Q198))
Q2547676
['Q2547676', 'P361', {'concept': 'Q198'}]
['Croix de guerre 1939–1945', 'part of', {'concept': 'war'}]
[]
Q362
SYSTEM
World War II
Q362
(Q2547676,P361,c(Q198))
action filter_type
action find
entity Q2547676
relation P361
type Q198
That award a component of is in [ANSWER]
['Q2547676', 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?l WHERE { resource:Q2547676 property:P361 ?l . ?l rdf:type ontology:Q198 }
World War II
That award a component of is in World War II
World War II
action filter_type
action find
entity Croix de guerre 1939–1945
relation part of
type war
['Croix de guerre 1939–1945', 'part of', {'concept': 'war'}]
SELECT DISTINCT ?l WHERE { resource:Croix_de_guerre_1939–1945 property:part_of ?l . ?l rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1115664
P735
Q82799
USER
What is the firstname of Hélie de Saint Marc ?
(Q1115664,P735,c(Q82799))
action filter_type
action find
entity Q1115664
relation P735
type Q82799
['Q1115664', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q1115664 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Hélie de Saint Marc
action filter_type
action find
entity Hélie de Saint Marc
relation given name
type name
['Hélie de Saint Marc', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Hélie_de_Saint_Marc property:given_name ?d . ?d rdf:type ontology:name }
[]
name
Q14656717
SYSTEM
Hélie
Q14656717
(Q1115664,P735,c(Q82799))
action filter_type
action find
entity Q1115664
relation P735
type Q82799
The firstname of [ANSWER] de Saint Marc is of [ANSWER]
['Q1115664', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q1115664 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Hélie
The firstname of Hélie de Saint Marc is of Hélie
Hélie
action filter_type
action find
entity Hélie de Saint Marc
relation given name
type name
['Hélie de Saint Marc', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Hélie_de_Saint_Marc property:given_name ?d . ?d rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21637619
Q82799
USER
And also tell me about Bernardus Fricx?
(Q21637619,P735,c(Q82799))
action filter_type
action find
entity Q21637619
relation P735
type Q82799
['Q21637619', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q21637619 property:P735 ?o . ?o rdf:type ontology:Q82799 }
Bernardus Fricx
action filter_type
action find
entity Bernardus Fricx
relation given name
type name
['Bernardus Fricx', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Bernardus_Fricx property:given_name ?o . ?o rdf:type ontology:name }
[]
name
Q19370861
SYSTEM
Bernardus
Q19370861
(Q21637619,P735,c(Q82799))
action filter_type
action find
entity Q21637619
relation P735
type Q82799
[ANSWER]
['Q21637619', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q21637619 property:P735 ?o . ?o rdf:type ontology:Q82799 }
Bernardus
Bernardus
action filter_type
action find
entity Bernardus Fricx
relation given name
type name
['Bernardus Fricx', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Bernardus_Fricx property:given_name ?o . ?o rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are atleast 16 names composed in ?
(c(Q82799),P407,c(Q34770))
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 16
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P407 ?m . ?m rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?m } . FILTER ( ?i >= 16 ) }
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 16
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?m } . FILTER ( ?i >= 16 ) }
[]
language name
Q1860 Q9056 Q1321
SYSTEM
English, Czech, Spanish
Q1860 Q1321 Q9056 Q652
(c(Q82799),P407,c(Q34770))
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 16
[ANSWERS]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P407 ?m . ?m rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?m } . FILTER ( ?i >= 16 ) }
English Spanish Czech Italian
English Czech Spanish
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 16
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?m } . FILTER ( ?i >= 16 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3537778
P180
Q82799 Q1792379 Q3305213
USER
How many names are depicted in greater number of art genres or paintings than donkeys ?
(c(Q1792379)|c(Q3305213),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3537778
relation P180
type Q1792379
type Q3305213
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?a WHERE { VALUES ( ?n ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } . ?w rdf:type ?n } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:P180 resource:Q3537778 . { { ?t rdf:type ontology:Q1792379 } UNION { ?t rdf:type ontology:Q3305213 } } } } . FILTER ( ?i > ?f ) }
donkeys
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type painting
action count
action filter_multi_types
action find_reverse
entity donkeys
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?a WHERE { VALUES ( ?n ) { ( ontology:art_genre ) ( ontology:painting ) } . ?w rdf:type ?n } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:depicts resource:donkeys . { { ?t rdf:type ontology:art_genre } UNION { ?t rdf:type ontology:painting } } } } . FILTER ( ?i > ?f ) }
[]
name art genre painting
SYSTEM
5
Q5 Q726 Q830 Q7368 Q144
(c(Q1792379)|c(Q3305213),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3537778
relation P180
type Q1792379
type Q3305213
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?a WHERE { VALUES ( ?n ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } . ?w rdf:type ?n } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:P180 resource:Q3537778 . { { ?t rdf:type ontology:Q1792379 } UNION { ?t rdf:type ontology:Q3305213 } } } } . FILTER ( ?i > ?f ) }
human horse cattle Ovis aries dog
5
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type painting
action count
action filter_multi_types
action find_reverse
entity donkeys
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?a WHERE { VALUES ( ?n ) { ( ontology:art_genre ) ( ontology:painting ) } . ?w rdf:type ?n } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:depicts resource:donkeys . { { ?t rdf:type ontology:art_genre } UNION { ?t rdf:type ontology:painting } } } } . FILTER ( ?i > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q41692
P180
Q82799 Q1792379 Q3305213
USER
And how about mule?
(c(Q1792379)|c(Q3305213),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q41692
relation P180
type Q1792379
type Q3305213
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:P180 resource:Q41692 . { { ?b rdf:type ontology:Q3305213 } UNION { ?b rdf:type ontology:Q1792379 } } } } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?x WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?x } }
mule
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type painting
action count
action filter_multi_types
action find_reverse
entity mule
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:depicts resource:mule . { { ?b rdf:type ontology:painting } UNION { ?b rdf:type ontology:art_genre } } } } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?x WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?x } }
[]
name art genre painting
SYSTEM
15
Q5 Q726 Q830 Q7368 Q2092297 Q144 Q201251 Q8335 Q3537778 Q1367 Q2734060 Q43115 Q876933 Q152 Q859257
(c(Q1792379)|c(Q3305213),P180,c(Q82799))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q41692
relation P180
type Q1792379
type Q3305213
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:P180 resource:Q41692 . { { ?b rdf:type ontology:Q3305213 } UNION { ?b rdf:type ontology:Q1792379 } } } } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?x WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?x } }
human horse cattle Ovis aries eagle dog peacock raven donkeys monkey reed saint magi fish fly
15
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type painting
action count
action filter_multi_types
action find_reverse
entity mule
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:depicts resource:mule . { { ?b rdf:type ontology:painting } UNION { ?b rdf:type ontology:art_genre } } } } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?x WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?x } }
[]