Simple Question (Direct)
Simple Question
Q3940276
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Rolando Maran ?
(Q3940276,P27,c(Q15617994))
action filter_type
action find
entity Q3940276
relation P27
type Q15617994
['Q3940276', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q3940276 property:P27 ?r }
Rolando Maran
action filter_type
action find
entity Rolando Maran
relation country of citizenship
type designation for an administrative territorial entity
['Rolando Maran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rolando_Maran property:country_of_citizenship ?r }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3940276,P27,c(Q15617994))
action filter_type
action find
entity Q3940276
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Rolando Maran
['Q3940276', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q3940276 property:P27 ?r }
Italy
Italy is the country of citizenship of Rolando Maran
Italy
action filter_type
action find
entity Rolando Maran
relation country of citizenship
type designation for an administrative territorial entity
['Rolando Maran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rolando_Maran property:country_of_citizenship ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P530
Q5589178 Q1048835
USER
How many regimes or political territories have diplomatic relationships with Italy ?
(Q38,P530,c(Q5589178)) (Q38,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q38
relation P530
type Q5589178
action filter_type
action find
entity Q38
relation P530
type Q1048835
['Q38', 'P530', {'concept': 'Q5589178'}] ['Q38', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q5589178 ) } }
Italy
action count
action union
action filter_type
action find
entity Italy
relation diplomatic relation
type regime
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'regime'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:regime ) } }
[]
regime political territorial entity
SYSTEM
7
Q40 Q1246 Q183 Q408 Q16 Q35 Q664
(Q38,P530,c(Q5589178)) (Q38,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q38
relation P530
type Q5589178
action filter_type
action find
entity Q38
relation P530
type Q1048835
[ANSWER]
['Q38', 'P530', {'concept': 'Q5589178'}] ['Q38', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q5589178 ) } }
Austria Kosovo Germany Australia Canada Denmark New Zealand
7
action count
action union
action filter_type
action find
entity Italy
relation diplomatic relation
type regime
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'regime'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:regime ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q830183
P1441
Q838948 Q15961987 Q502895
USER
Which people are from the works of greater number of works of art and television genres than Eve ?
(c(Q502895),P1441,c(Q838948)|c(Q15961987))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q830183
relation P1441
type Q838948
type Q15961987
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:Q15961987 ) ( ontology:Q838948 ) } . ?w rdf:type ?l } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q830183 property:P1441 ?z . { { ?z rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15961987 } } } } . FILTER ( ?a > ?v ) }
Eve
action greater
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Eve
relation present in work
type work of art
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television genre'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:television_genre ) ( ontology:work_of_art ) } . ?w rdf:type ?l } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Eve property:present_in_work ?z . { { ?z rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:television_genre } } } } . FILTER ( ?a > ?v ) }
[]
work of art television genre common name
Q9181 Q37085 Q9077
SYSTEM
Abraham, Solomon, Moses
Q23885172 Q24579400 Q24624067 Q3343834 Q24577230 Q494455 Q24622402 Q20656752 Q1353836 Q19975705 Q25885222 Q181538 Q24623408 Q9077 Q24624893 Q1396131 Q24625686 Q24577318 Q24625326 Q25858050 Q26858752 Q24633210 Q1346246 Q24625073 Q24623579 Q37085 Q24577238 Q24632700 Q24626363 Q32295 Q24633126 Q3658171 Q4804479 Q26721185 Q24623790 Q200947 Q24083251 Q9181 Q25923184 Q26858995 Q372783 Q16006746 Q24626010 Q26858919
(c(Q502895),P1441,c(Q838948)|c(Q15961987))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q830183
relation P1441
type Q838948
type Q15961987
[ANSWERS] are from the works of greater number of works of art and television genres than Eve
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:Q15961987 ) ( ontology:Q838948 ) } . ?w rdf:type ?l } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q830183 property:P1441 ?z . { { ?z rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15961987 } } } } . FILTER ( ?a > ?v ) }
Victor Petit Jebidiah Farnsworth Bea Hansen Norman Winther Harriet Mutesi Orville Wright Frank Fauteux Bernard C. Webber Hrothgar Daniel Webster Cluff James Harcourt Rudolf Abel Eldon Hanan Moses Raymond Sybert Wilbur Wright Andy Fitzgerald Sara Katende Miriam Webber Helen Kingsleigh Sarah Katende George "Tiny" Myers Johnny Ringo Richard Livesey Wallace Quirey Solomon Robert Katende John Stello Mel Gouthro Michael J. Massimino Donald Bangs Phiona Mutesi Ash Vasudevan Lena Gogan D.A. Brown Ahmad ibn Fadlan Stan the Man Abraham Elizabeth Ham Aloysius Kyazze Adrian Cronauer James B. Donovan Ervin Maske Hope Katende
Abraham, Solomon and Moses are from the works of greater number of works of art and television genres than Eve
Abraham Solomon Moses
action greater
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Eve
relation present in work
type work of art
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television genre'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:television_genre ) ( ontology:work_of_art ) } . ?w rdf:type ?l } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Eve property:present_in_work ?z . { { ?z rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:television_genre } } } } . FILTER ( ?a > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2600794
P1441
Q838948 Q15961987 Q502895
USER
And how about Erik Björnsson?
(c(Q502895),P1441,c(Q838948)|c(Q15961987))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q2600794
relation P1441
type Q838948
type Q15961987
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?j ) WHERE { { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q838948 } UNION { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15961987 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Q2600794 property:P1441 ?i . { { ?i rdf:type ontology:Q838948 } UNION { ?i rdf:type ontology:Q15961987 } } } } . FILTER ( ?j > ?q ) }
Erik Björnsson
action greater
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Erik Björnsson
relation present in work
type work of art
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television genre'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?j ) WHERE { { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:work_of_art } UNION { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:television_genre } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Erik_Björnsson property:present_in_work ?i . { { ?i rdf:type ontology:work_of_art } UNION { ?i rdf:type ontology:television_genre } } } } . FILTER ( ?j > ?q ) }
[]
work of art television genre common name
Q9181 Q37085 Q9077
SYSTEM
Abraham, Solomon, Moses
Q23885172 Q24579400 Q24624067 Q3343834 Q24577230 Q494455 Q24622402 Q20656752 Q1353836 Q19975705 Q25885222 Q181538 Q24623408 Q9077 Q24624893 Q1396131 Q24625686 Q24577318 Q24625326 Q25858050 Q26858752 Q24633210 Q1346246 Q24625073 Q24623579 Q37085 Q24577238 Q24632700 Q24626363 Q32295 Q24633126 Q3658171 Q4804479 Q26721185 Q24623790 Q200947 Q24083251 Q9181 Q25923184 Q26858995 Q372783 Q16006746 Q24626010 Q26858919
(c(Q502895),P1441,c(Q838948)|c(Q15961987))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action count
action filter_multi_types
action find
entity Q2600794
relation P1441
type Q838948
type Q15961987
[ANSWERS]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?j ) WHERE { { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q838948 } UNION { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15961987 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Q2600794 property:P1441 ?i . { { ?i rdf:type ontology:Q838948 } UNION { ?i rdf:type ontology:Q15961987 } } } } . FILTER ( ?j > ?q ) }
Victor Petit Jebidiah Farnsworth Bea Hansen Norman Winther Harriet Mutesi Orville Wright Frank Fauteux Bernard C. Webber Hrothgar Daniel Webster Cluff James Harcourt Rudolf Abel Eldon Hanan Moses Raymond Sybert Wilbur Wright Andy Fitzgerald Sara Katende Miriam Webber Helen Kingsleigh Sarah Katende George "Tiny" Myers Johnny Ringo Richard Livesey Wallace Quirey Solomon Robert Katende John Stello Mel Gouthro Michael J. Massimino Donald Bangs Phiona Mutesi Ash Vasudevan Lena Gogan D.A. Brown Ahmad ibn Fadlan Stan the Man Abraham Elizabeth Ham Aloysius Kyazze Adrian Cronauer James B. Donovan Ervin Maske Hope Katende
Abraham Solomon Moses
action greater
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television genre
action count
action filter_multi_types
action find
entity Erik Björnsson
relation present in work
type work of art
type television genre
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television genre'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?j ) WHERE { { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:work_of_art } UNION { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:television_genre } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Erik_Björnsson property:present_in_work ?i . { { ?i rdf:type ontology:work_of_art } UNION { ?i rdf:type ontology:television_genre } } } } . FILTER ( ?j > ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9077
P25
Q502895
USER
Which person was the mother of Moses ?
(Q9077,P25,c(Q502895))
action filter_type
action find
entity Q9077
relation P25
type Q502895
['Q9077', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q9077 property:P25 ?l . ?l rdf:type ontology:Q502895 }
Moses
action filter_type
action find
entity Moses
relation mother
type common name
['Moses', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Moses property:mother ?l . ?l rdf:type ontology:common_name }
[]
common name
Q594805
SYSTEM
Jochebed
Q594805
(Q9077,P25,c(Q502895))
action filter_type
action find
entity Q9077
relation P25
type Q502895
[ANSWER] was the mother of Moses
['Q9077', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q9077 property:P25 ?l . ?l rdf:type ontology:Q502895 }
Jochebed
Jochebed was the mother of Moses
Jochebed
action filter_type
action find
entity Moses
relation mother
type common name
['Moses', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Moses property:mother ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P106
Q502895
USER
Which person has career as Italy ?
(c(Q502895),P106,Q38)
action filter_type
action find_reverse
entity Q38
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q38']
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q38 . ?l rdf:type ontology:Q502895 }
Italy
action filter_type
action find_reverse
entity Italy
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Italy']
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:Italy . ?l rdf:type ontology:common_name }
[]
common name
Q21334720
SYSTEM
Giovanni Marangoni
Q21334720
(c(Q502895),P106,Q38)
action filter_type
action find_reverse
entity Q38
relation P106
type Q502895
[ANSWER] has career as Italy
[{'concept': 'Q502895'}, 'P106', 'Q38']
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q38 . ?l rdf:type ontology:Q502895 }
Giovanni Marangoni
Giovanni Marangoni has career as Italy
Giovanni Marangoni
action filter_type
action find_reverse
entity Italy
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Italy']
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:Italy . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P710
Q930933
USER
What event were Italy a participant of ?
(c(Q930933),P710,Q38)
action filter_type
action find_reverse
entity Q38
relation P710
type Q930933
[{'concept': 'Q930933'}, 'P710', 'Q38']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q930933 . ?j property:P710 resource:Q38 }
Italy
action filter_type
action find_reverse
entity Italy
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Italy']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:relationship . ?j property:participant resource:Italy }
[]
relationship
Q3424084 Q4398175
SYSTEM
Germany–Italy relations, Italy–Russia relations
Q3424084 Q4398175
(c(Q930933),P710,Q38)
action filter_type
action find_reverse
entity Q38
relation P710
type Q930933
Italy were in [ANSWERS]
[{'concept': 'Q930933'}, 'P710', 'Q38']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q930933 . ?j property:P710 resource:Q38 }
Germany–Italy relations Italy–Russia relations
Italy were in Germany–Italy relations and Italy–Russia relations
Germany–Italy relations Italy–Russia relations
action filter_type
action find_reverse
entity Italy
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Italy']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:relationship . ?j property:participant resource:Italy }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3424084
P17
Q1048835
USER
Which political territory is that relationship located in ?
(Q3424084,P17,c(Q1048835))
action filter_type
action find
entity Q3424084
relation P17
type Q1048835
['Q3424084', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q3424084 property:P17 ?f . ?f rdf:type ontology:Q1048835 }
Germany–Italy relations
action filter_type
action find
entity Germany–Italy relations
relation country
type political territorial entity
['Germany–Italy relations', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Germany–Italy_relations property:country ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q4398175
SYSTEM
Did you mean Italy–Russia relations ?
Q3424084 Q4398175
(Q3424084,P17,c(Q1048835)) (Q4398175,P17,c(Q1048835))
[ANSWER]
['Q3424084', 'P17', {'concept': 'Q1048835'}] ['Q4398175', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q3424084 property:P17 ?f . ?f rdf:type ontology:Q1048835 }
Germany–Italy relations Italy–Russia relations
Did you mean Italy–Russia relations ?
Italy–Russia relations
['Germany–Italy relations', 'country', {'concept': 'political territorial entity'}] ['Italy–Russia relations', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Germany–Italy_relations property:country ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Germany–Italy relations. Could you tell me the answer for that?
(Q3424084,P17,c(Q1048835))
Q3424084
['Q3424084', 'P17', {'concept': 'Q1048835'}]
['Germany–Italy relations', 'country', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q3424084,P17,c(Q1048835))
action filter_type
action find
entity Q3424084
relation P17
type Q1048835
That relationship is located in [ANSWER]
['Q3424084', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q3424084 property:P17 ?f . ?f rdf:type ontology:Q1048835 }
Germany
That relationship is located in Germany
Germany
action filter_type
action find
entity Germany–Italy relations
relation country
type political territorial entity
['Germany–Italy relations', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Germany–Italy_relations property:country ?f . ?f rdf:type ontology:political_territorial_entity }
[]