Simple Question (Direct)
Simple Question
Q58180
P102
Q7210356
USER
Which political organization is Edmond Haxhinasto a member of ?
(Q58180,P102,c(Q7210356))
action filter_type
action find
entity Q58180
relation P102
type Q7210356
['Q58180', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7210356 . resource:Q58180 property:P102 ?u }
Edmond Haxhinasto
action filter_type
action find
entity Edmond Haxhinasto
relation member of political party
type political organization
['Edmond Haxhinasto', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_organization . resource:Edmond_Haxhinasto property:member_of_political_party ?u }
[]
political organization
Q1123814
SYSTEM
Socialist Movement for Integration
Q1123814
(Q58180,P102,c(Q7210356))
action filter_type
action find
entity Q58180
relation P102
type Q7210356
The [ANSWER] is Edmond Haxhinasto a member of
['Q58180', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7210356 . resource:Q58180 property:P102 ?u }
Socialist Movement for Integration
The Socialist Movement for Integration is Edmond Haxhinasto a member of
Socialist Movement for Integration
action filter_type
action find
entity Edmond Haxhinasto
relation member of political party
type political organization
['Edmond Haxhinasto', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_organization . resource:Edmond_Haxhinasto property:member_of_political_party ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q58180
P106
Q12737077
USER
What do Edmond Haxhinasto do for a living ?
(Q58180,P106,c(Q12737077))
action filter_type
action find
entity Q58180
relation P106
type Q12737077
['Q58180', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q58180 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Edmond Haxhinasto
action filter_type
action find
entity Edmond Haxhinasto
relation occupation
type occupation
['Edmond Haxhinasto', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Edmond_Haxhinasto property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q193391 Q82955
SYSTEM
diplomat, politician
Q193391 Q82955
(Q58180,P106,c(Q12737077))
action filter_type
action find
entity Q58180
relation P106
type Q12737077
Edmond Haxhinasto do [ANSWERS] for a living
['Q58180', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q58180 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
diplomat politician
Edmond Haxhinasto do diplomat and politician for a living
diplomat politician
action filter_type
action find
entity Edmond Haxhinasto
relation occupation
type occupation
['Edmond Haxhinasto', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Edmond_Haxhinasto property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q193391
P39
Q502895
USER
Who were responsible for occupying the position of that occupation ?
(c(Q502895),P39,Q193391)
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q193391']
SELECT DISTINCT ?k WHERE { ?k property:P39 resource:Q193391 . ?k rdf:type ontology:Q502895 }
diplomat
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'diplomat']
SELECT DISTINCT ?k WHERE { ?k property:position_held resource:diplomat . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q193391
SYSTEM
Did you mean diplomat ?
Q193391 Q82955
(c(Q502895),P39,Q193391) (c(Q502895),P39,Q82955)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q193391'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?k WHERE { ?k property:P39 resource:Q193391 . ?k rdf:type ontology:Q502895 }
diplomat politician
Did you mean diplomat ?
diplomat
[{'concept': 'common name'}, 'position held', 'diplomat'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?k WHERE { ?k property:position_held resource:diplomat . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P39,Q193391)
[{'concept': 'Q502895'}, 'P39', 'Q193391']
[{'concept': 'common name'}, 'position held', 'diplomat']
[]
Q19828328 Q699131 Q16912378
SYSTEM
Antonio Caselli, Xiong Xianghui, Alexandre Melnik
Q19828328 Q16912378 Q699131
(c(Q502895),P39,Q193391)
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q193391']
SELECT DISTINCT ?k WHERE { ?k property:P39 resource:Q193391 . ?k rdf:type ontology:Q502895 }
Antonio Caselli Alexandre Melnik Xiong Xianghui
Antonio Caselli, Xiong Xianghui and Alexandre Melnik were responsible for occupying the position of that occupation
Antonio Caselli Xiong Xianghui Alexandre Melnik
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'diplomat']
SELECT DISTINCT ?k WHERE { ?k property:position_held resource:diplomat . ?k rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16912378
P21
Q290
USER
What is the sex of that person ?
(Q16912378,P21,c(Q290))
action filter_type
action find
entity Q16912378
relation P21
type Q290
['Q16912378', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q16912378 property:P21 ?q . ?q rdf:type ontology:Q290 }
Alexandre Melnik
action filter_type
action find
entity Alexandre Melnik
relation gender
type sex
['Alexandre Melnik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Alexandre_Melnik property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q16912378
SYSTEM
Did you mean Alexandre Melnik ?
Q19828328 Q699131 Q16912378
(Q19828328,P21,c(Q290)) (Q699131,P21,c(Q290)) (Q16912378,P21,c(Q290))
[ANSWER]
['Q19828328', 'P21', {'concept': 'Q290'}] ['Q699131', 'P21', {'concept': 'Q290'}] ['Q16912378', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q16912378 property:P21 ?q . ?q rdf:type ontology:Q290 }
Antonio Caselli Xiong Xianghui Alexandre Melnik
Did you mean Alexandre Melnik ?
Alexandre Melnik
['Antonio Caselli', 'gender', {'concept': 'sex'}] ['Xiong Xianghui', 'gender', {'concept': 'sex'}] ['Alexandre Melnik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Alexandre_Melnik property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q16912378,P21,c(Q290))
['Q16912378', 'P21', {'concept': 'Q290'}]
['Alexandre Melnik', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q16912378,P21,c(Q290))
action filter_type
action find
entity Q16912378
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q16912378', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q16912378 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Alexandre Melnik
relation gender
type sex
['Alexandre Melnik', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Alexandre_Melnik property:gender ?q . ?q rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atmost 2970 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2970
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?v <= 2970 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2970
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?v <= 2970 ) }
[]
musical instrument common name
SYSTEM
64
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2970
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?v <= 2970 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
64
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2970
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?v <= 2970 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16912378
P39
Q12737077
USER
Which occupations were the positions occupied by Alexandre Melnik ?
(Q16912378,P39,c(Q12737077))
action filter_type
action find
entity Q16912378
relation P39
type Q12737077
['Q16912378', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q16912378 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Alexandre Melnik
action filter_type
action find
entity Alexandre Melnik
relation position held
type occupation
['Alexandre Melnik', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Alexandre_Melnik property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q193391 Q1930187 Q37226
SYSTEM
diplomat, journalist, teacher
Q193391 Q1930187 Q37226
(Q16912378,P39,c(Q12737077))
action filter_type
action find
entity Q16912378
relation P39
type Q12737077
[ANSWERS] were the positions occupied by Alexandre Melnik
['Q16912378', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q16912378 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
diplomat journalist teacher
Diplomat, journalist and teacher were the positions occupied by Alexandre Melnik
diplomat journalist teacher
action filter_type
action find
entity Alexandre Melnik
relation position held
type occupation
['Alexandre Melnik', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Alexandre_Melnik property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1612759
Q12737077
USER
And also tell me about Hermann Siebold?
(Q1612759,P39,c(Q12737077))
action filter_type
action find
entity Q1612759
relation P39
type Q12737077
['Q1612759', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1612759 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Hermann Siebold
action filter_type
action find
entity Hermann Siebold
relation position held
type occupation
['Hermann Siebold', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Hermann_Siebold property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q17850767
SYSTEM
member of the Reichstag of the Weimar Republic
Q17850767
(Q1612759,P39,c(Q12737077))
action filter_type
action find
entity Q1612759
relation P39
type Q12737077
[ANSWER]
['Q1612759', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1612759 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
member of the Reichstag of the Weimar Republic
member of the Reichstag of the Weimar Republic
action filter_type
action find
entity Hermann Siebold
relation position held
type occupation
['Hermann Siebold', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Hermann_Siebold property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q17850767 Q637829 Q17012769
P361
Q1752346
USER
Is that occupation a component of Reichstag and Norwich City Council ?
(Q17850767,P361,Q637829) (Q17850767,P361,Q17012769)
action is_in
entity Q17850767
action intersection
action find_reverse
entity Q637829
relation P361
action find_reverse
entity Q17012769
relation P361
['Q17850767', 'P361', 'Q637829'] ['Q17850767', 'P361', 'Q17012769']
ASK WHERE { resource:Q17850767 property:P361 resource:Q637829 . resource:Q17850767 property:P361 resource:Q17012769 }
member of the Reichstag of the Weimar Republic Reichstag Norwich City Council
action is_in
entity member of the Reichstag of the Weimar Republic
action intersection
action find_reverse
entity Reichstag
relation part of
action find_reverse
entity Norwich City Council
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Reichstag'] ['member of the Reichstag of the Weimar Republic', 'part of', 'Norwich City Council']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Reichstag . resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Norwich_City_Council }
[]
assembly
SYSTEM
YES and NO respectively
(Q17850767,P361,Q637829) (Q17850767,P361,Q17012769)
action is_in
entity Q17850767
action intersection
action find_reverse
entity Q637829
relation P361
action find_reverse
entity Q17012769
relation P361
[ANSWER]
['Q17850767', 'P361', 'Q637829'] ['Q17850767', 'P361', 'Q17012769']
ASK WHERE { resource:Q17850767 property:P361 resource:Q637829 . resource:Q17850767 property:P361 resource:Q17012769 }
YES and NO respectively
action is_in
entity member of the Reichstag of the Weimar Republic
action intersection
action find_reverse
entity Reichstag
relation part of
action find_reverse
entity Norwich City Council
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Reichstag'] ['member of the Reichstag of the Weimar Republic', 'part of', 'Norwich City Council']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Reichstag . resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Norwich_City_Council }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17850767
P1001
Q7275
USER
Which state comes under the jurisdiction of that occupation ?
action filter_type
action find
entity Q17850767
relation P1001
type Q7275
SELECT DISTINCT ?n WHERE { resource:Q17850767 property:P1001 ?n . ?n rdf:type ontology:Q7275 }
member of the Reichstag of the Weimar Republic
action filter_type
action find
entity member of the Reichstag of the Weimar Republic
relation applies to jurisdiction
type state
SELECT DISTINCT ?n WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:applies_to_jurisdiction ?n . ?n rdf:type ontology:state }
[]
state
Q41304
SYSTEM
Weimar Republic
Q41304
action filter_type
action find
entity Q17850767
relation P1001
type Q7275
Republic [ANSWER] comes under the jurisdiction of that occupation
SELECT DISTINCT ?n WHERE { resource:Q17850767 property:P1001 ?n . ?n rdf:type ontology:Q7275 }
Weimar Republic
Republic Weimar Republic comes under the jurisdiction of that occupation
Weimar Republic
action filter_type
action find
entity member of the Reichstag of the Weimar Republic
relation applies to jurisdiction
type state
SELECT DISTINCT ?n WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:applies_to_jurisdiction ?n . ?n rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17850767
P17
Q7275
USER
Which state is member of the Reichstag of the Weimar Republic a part of ?
(Q17850767,P17,c(Q7275))
action filter_type
action find
entity Q17850767
relation P17
type Q7275
['Q17850767', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q17850767 property:P17 ?m . ?m rdf:type ontology:Q7275 }
member of the Reichstag of the Weimar Republic
action filter_type
action find
entity member of the Reichstag of the Weimar Republic
relation country
type state
['member of the Reichstag of the Weimar Republic', 'country', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:country ?m . ?m rdf:type ontology:state }
[]
state
Q41304
SYSTEM
Weimar Republic
Q41304
(Q17850767,P17,c(Q7275))
action filter_type
action find
entity Q17850767
relation P17
type Q7275
Germany [ANSWER] is member of the Reichstag of the [ANSWER] a part of
['Q17850767', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q17850767 property:P17 ?m . ?m rdf:type ontology:Q7275 }
Weimar Republic
Germany Weimar Republic is member of the Reichstag of the Weimar Republic a part of
Weimar Republic
action filter_type
action find
entity member of the Reichstag of the Weimar Republic
relation country
type state
['member of the Reichstag of the Weimar Republic', 'country', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:country ?m . ?m rdf:type ontology:state }
[]