Simple Question (Direct)
Simple Question
Q1243415
P21
Q290
USER
What is the sex of Hans Walter Berg ?
(Q1243415,P21,c(Q290))
action filter_type
action find
entity Q1243415
relation P21
type Q290
['Q1243415', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1243415 property:P21 ?o . ?o rdf:type ontology:Q290 }
Hans Walter Berg
action filter_type
action find
entity Hans Walter Berg
relation gender
type sex
['Hans Walter Berg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Hans_Walter_Berg property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1243415,P21,c(Q290))
action filter_type
action find
entity Q1243415
relation P21
type Q290
The sex of Hans Walter Berg is the [ANSWER]
['Q1243415', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1243415 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of Hans Walter Berg is the male
male
action filter_type
action find
entity Hans Walter Berg
relation gender
type sex
['Hans Walter Berg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Hans_Walter_Berg property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1243415
P166
Q618779
USER
What was awarded to that person ?
(Q6581097,P166,c(Q618779))
action filter_type
action find
entity Q1243415
relation P166
type Q618779
['Q6581097', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . resource:Q1243415 property:P166 ?p }
Hans Walter Berg
action filter_type
action find
entity Hans Walter Berg
relation award received
type award
['male', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . resource:Hans_Walter_Berg property:award_received ?p }
[]
award
Q10905276
SYSTEM
Commander's Cross of the Order of Merit of the Federal Republic of Germany
Q10905276
(Q6581097,P166,c(Q618779))
action filter_type
action find
entity Q1243415
relation P166
type Q618779
Germany [ANSWER] was awarded to that person
['Q6581097', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . resource:Q1243415 property:P166 ?p }
Commander's Cross of the Order of Merit of the Federal Republic of Germany
Germany Commander's Cross of the Order of Merit of the Federal Republic of Germany was awarded to that person
Commander's Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Hans Walter Berg
relation award received
type award
['male', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . resource:Hans_Walter_Berg property:award_received ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1243415
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q10905276,P27,c(Q1048835))
action filter_type
action find
entity Q1243415
relation P27
type Q1048835
['Q10905276', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q1243415 property:P27 ?i . ?i rdf:type ontology:Q1048835 }
Hans Walter Berg
action filter_type
action find
entity Hans Walter Berg
relation country of citizenship
type political territorial entity
["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Hans_Walter_Berg property:country_of_citizenship ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q10905276,P27,c(Q1048835))
action filter_type
action find
entity Q1243415
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q10905276', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q1243415 property:P27 ?i . ?i rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of that person
Germany
action filter_type
action find
entity Hans Walter Berg
relation country of citizenship
type political territorial entity
["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Hans_Walter_Berg property:country_of_citizenship ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q2041454
P27
Q502895
USER
Is Ottomar Domnick a native of that political territory ?
(Q2041454,P27,Q183)
action is_in
entity Q183
action find
entity Q2041454
relation P27
['Q2041454', 'P27', 'Q183']
ASK WHERE { resource:Q2041454 property:P27 resource:Q183 }
Germany Ottomar Domnick
action is_in
entity Germany
action find
entity Ottomar Domnick
relation country of citizenship
['Ottomar Domnick', 'country of citizenship', 'Germany']
ASK WHERE { resource:Ottomar_Domnick property:country_of_citizenship resource:Germany }
[]
common name
SYSTEM
YES
(Q2041454,P27,Q183)
action is_in
entity Q183
action find
entity Q2041454
relation P27
[ANSWER]
['Q2041454', 'P27', 'Q183']
ASK WHERE { resource:Q2041454 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Ottomar Domnick
relation country of citizenship
['Ottomar Domnick', 'country of citizenship', 'Germany']
ASK WHERE { resource:Ottomar_Domnick property:country_of_citizenship resource:Germany }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q15284630
P361
Q13406554 Q35798 Q618779
USER
How many awards are a portion of greater number of sport competitions or executive branches than Grand Officer of the Order of Saints Maurice and Lazarus ?
(c(Q618779),P361,c(Q13406554)|c(Q35798))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q618779
type Q13406554
action find_tuple_counts
relation P361
type Q618779
type Q35798
action count
action filter_multi_types
action find
entity Q15284630
relation P361
type Q13406554
type Q35798
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Q15284630 property:P361 ?z . { VALUES ( ?t ) { ( ontology:Q13406554 ) ( ontology:Q35798 ) } . ?z rdf:type ?t } } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?m WHERE { { ?m property:P361 ?q . ?m rdf:type ontology:Q618779 . ?q rdf:type ontology:Q13406554 } UNION { ?m rdf:type ontology:Q618779 . ?q rdf:type ontology:Q35798 . ?m property:P361 ?q } } GROUP BY ?m } }
Grand Officer of the Order of Saints Maurice and Lazarus
action count
action greater
action union
action find_tuple_counts
relation part of
type award
type sport competition
action find_tuple_counts
relation part of
type award
type executive branch
action count
action filter_multi_types
action find
entity Grand Officer of the Order of Saints Maurice and Lazarus
relation part of
type sport competition
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Grand_Officer_of_the_Order_of_Saints_Maurice_and_Lazarus property:part_of ?z . { VALUES ( ?t ) { ( ontology:sport_competition ) ( ontology:executive_branch ) } . ?z rdf:type ?t } } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?m WHERE { { ?m property:part_of ?q . ?m rdf:type ontology:award . ?q rdf:type ontology:sport_competition } UNION { ?m rdf:type ontology:award . ?q rdf:type ontology:executive_branch . ?m property:part_of ?q } } GROUP BY ?m } }
[]
sport competition executive branch award
SYSTEM
2
Q3068024 Q2050658
(c(Q618779),P361,c(Q13406554)|c(Q35798))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q618779
type Q13406554
action find_tuple_counts
relation P361
type Q618779
type Q35798
action count
action filter_multi_types
action find
entity Q15284630
relation P361
type Q13406554
type Q35798
[ANSWER]
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Q15284630 property:P361 ?z . { VALUES ( ?t ) { ( ontology:Q13406554 ) ( ontology:Q35798 ) } . ?z rdf:type ?t } } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?m WHERE { { ?m property:P361 ?q . ?m rdf:type ontology:Q618779 . ?q rdf:type ontology:Q13406554 } UNION { ?m rdf:type ontology:Q618779 . ?q rdf:type ontology:Q35798 . ?m property:P361 ?q } } GROUP BY ?m } }
First Secretary of State 2009–10 ISU Speed Skating World Cup – Men's 1000 metres
2
action count
action greater
action union
action find_tuple_counts
relation part of
type award
type sport competition
action find_tuple_counts
relation part of
type award
type executive branch
action count
action filter_multi_types
action find
entity Grand Officer of the Order of Saints Maurice and Lazarus
relation part of
type sport competition
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Grand_Officer_of_the_Order_of_Saints_Maurice_and_Lazarus property:part_of ?z . { VALUES ( ?t ) { ( ontology:sport_competition ) ( ontology:executive_branch ) } . ?z rdf:type ?t } } } . FILTER ( ?v > ?j ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?m WHERE { { ?m property:part_of ?q . ?m rdf:type ontology:award . ?q rdf:type ontology:sport_competition } UNION { ?m rdf:type ontology:award . ?q rdf:type ontology:executive_branch . ?m property:part_of ?q } } GROUP BY ?m } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5243456
P361
Q13406554 Q35798 Q618779
USER
And how about Daytime Emmy Award for Outstanding Younger Actor in a Drama Series?
(c(Q618779),P361,c(Q13406554)|c(Q35798))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q618779
type Q13406554
action find_tuple_counts
relation P361
type Q618779
type Q35798
action count
action filter_multi_types
action find
entity Q5243456
relation P361
type Q13406554
type Q35798
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q5243456 property:P361 ?n . { { ?n rdf:type ontology:Q13406554 } UNION { ?n rdf:type ontology:Q35798 } } } } . FILTER ( ?x > ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:Q13406554 ) ( ontology:Q35798 ) } } GROUP BY ?j } }
Daytime Emmy Award for Outstanding Younger Actor in a Drama Series
action count
action greater
action union
action find_tuple_counts
relation part of
type award
type sport competition
action find_tuple_counts
relation part of
type award
type executive branch
action count
action filter_multi_types
action find
entity Daytime Emmy Award for Outstanding Younger Actor in a Drama Series
relation part of
type sport competition
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Daytime_Emmy_Award_for_Outstanding_Younger_Actor_in_a_Drama_Series property:part_of ?n . { { ?n rdf:type ontology:sport_competition } UNION { ?n rdf:type ontology:executive_branch } } } } . FILTER ( ?x > ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:sport_competition ) ( ontology:executive_branch ) } } GROUP BY ?j } }
[]
sport competition executive branch award
SYSTEM
2
Q3068024 Q2050658
(c(Q618779),P361,c(Q13406554)|c(Q35798))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q618779
type Q13406554
action find_tuple_counts
relation P361
type Q618779
type Q35798
action count
action filter_multi_types
action find
entity Q5243456
relation P361
type Q13406554
type Q35798
[ANSWER]
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q13406554'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q5243456 property:P361 ?n . { { ?n rdf:type ontology:Q13406554 } UNION { ?n rdf:type ontology:Q35798 } } } } . FILTER ( ?x > ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:Q13406554 ) ( ontology:Q35798 ) } } GROUP BY ?j } }
First Secretary of State 2009–10 ISU Speed Skating World Cup – Men's 1000 metres
2
action count
action greater
action union
action find_tuple_counts
relation part of
type award
type sport competition
action find_tuple_counts
relation part of
type award
type executive branch
action count
action filter_multi_types
action find
entity Daytime Emmy Award for Outstanding Younger Actor in a Drama Series
relation part of
type sport competition
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'sport competition'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Daytime_Emmy_Award_for_Outstanding_Younger_Actor_in_a_Drama_Series property:part_of ?n . { { ?n rdf:type ontology:sport_competition } UNION { ?n rdf:type ontology:executive_branch } } } } . FILTER ( ?x > ?k ) . { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?x ) WHERE { ?y rdf:type ?c . VALUES ( ?c ) { ( ontology:sport_competition ) ( ontology:executive_branch ) } } GROUP BY ?j } }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q10855271 Q15284630
P166
Q502895
USER
Which people received the award titled Grand Officer of the Order of Saints Maurice and Lazarus but not Knight of the Legion of Honour ?
AND((c(Q502895),P166,Q15284630), NOT((c(Q502895),P166,Q10855271)))
action filter_type
action difference
action find_reverse
entity Q15284630
relation P166
action find_reverse
entity Q10855271
relation P166
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P166', 'Q15284630'], {'NOT': [[{'concept': 'Q502895'}, 'P166', 'Q10855271']]}]}
SELECT DISTINCT ?n WHERE { ?n property:P166 resource:Q15284630 . FILTER NOT EXISTS { ?n property:P166 resource:Q10855271 } . ?n rdf:type ontology:Q502895 }
Knight of the Legion of Honour Grand Officer of the Order of Saints Maurice and Lazarus
action filter_type
action difference
action find_reverse
entity Grand Officer of the Order of Saints Maurice and Lazarus
relation award received
action find_reverse
entity Knight of the Legion of Honour
relation award received
type common name
{'AND': [[{'concept': 'common name'}, 'award received', 'Grand Officer of the Order of Saints Maurice and Lazarus'], {'NOT': [[{'concept': 'common name'}, 'award received', 'Knight of the Legion of Honour']]}]}
SELECT DISTINCT ?n WHERE { ?n property:award_received resource:Grand_Officer_of_the_Order_of_Saints_Maurice_and_Lazarus . FILTER NOT EXISTS { ?n property:award_received resource:Knight_of_the_Legion_of_Honour } . ?n rdf:type ontology:common_name }
[]
common name
Q784891 Q2404912 Q3057234 Q4772057 Q2831315 Q2286799 Q151414 Q697597 Q3651469 Q508659
SYSTEM
Some of them are Jean Jules Henri Mordacq, Lauri Malmberg, Ernest de Ligne, Anthony Bailey, Albert Lantonnois van Rode, Silvio Benigno Crespi, George Marshall, Gabriele Albertini, Camillo Bozzolo, Charles Mangin
Q4772057 Q2831315 Q697597 Q3057234 Q151414 Q508659 Q2404912 Q2585708 Q3651469 Q2286799 Q784891
AND((c(Q502895),P166,Q15284630), NOT((c(Q502895),P166,Q10855271)))
action filter_type
action difference
action find_reverse
entity Q15284630
relation P166
action find_reverse
entity Q10855271
relation P166
type Q502895
[ANSWERS] received the award titled Grand Officer of the Order of Saints Maurice and Lazarus but not Knight of the Legion of Honour
{'AND': [[{'concept': 'Q502895'}, 'P166', 'Q15284630'], {'NOT': [[{'concept': 'Q502895'}, 'P166', 'Q10855271']]}]}
SELECT DISTINCT ?n WHERE { ?n property:P166 resource:Q15284630 . FILTER NOT EXISTS { ?n property:P166 resource:Q10855271 } . ?n rdf:type ontology:Q502895 }
Anthony Bailey Albert Lantonnois van Rode Gabriele Albertini Ernest de Ligne George Marshall Charles Mangin Lauri Malmberg Henri Mathias Berthelot Camillo Bozzolo Silvio Benigno Crespi Jean Jules Henri Mordacq
Jean Jules Henri Mordacq, Lauri Malmberg, Ernest de Ligne, Anthony Bailey, Albert Lantonnois van Rode, Silvio Benigno Crespi, George Marshall, Gabriele Albertini, Camillo Bozzolo and Charles Mangin received the award titled Grand Officer of the Order of Saints Maurice and Lazarus but not Knight of the Legion of Honour
Jean Jules Henri Mordacq Lauri Malmberg Ernest de Ligne Anthony Bailey Albert Lantonnois van Rode Silvio Benigno Crespi George Marshall Gabriele Albertini Camillo Bozzolo Charles Mangin
action filter_type
action difference
action find_reverse
entity Grand Officer of the Order of Saints Maurice and Lazarus
relation award received
action find_reverse
entity Knight of the Legion of Honour
relation award received
type common name
{'AND': [[{'concept': 'common name'}, 'award received', 'Grand Officer of the Order of Saints Maurice and Lazarus'], {'NOT': [[{'concept': 'common name'}, 'award received', 'Knight of the Legion of Honour']]}]}
SELECT DISTINCT ?n WHERE { ?n property:award_received resource:Grand_Officer_of_the_Order_of_Saints_Maurice_and_Lazarus . FILTER NOT EXISTS { ?n property:award_received resource:Knight_of_the_Legion_of_Honour } . ?n rdf:type ontology:common_name }
[]