Simple Question (Direct)
Simple Question
Q1559995
P39
Q12737077
USER
Which occupations were the positions occupied by Philip R. Thompson ?
(Q1559995,P39,c(Q12737077))
action filter_type
action find
entity Q1559995
relation P39
type Q12737077
['Q1559995', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1559995 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Philip R. Thompson
action filter_type
action find
entity Philip R. Thompson
relation position held
type occupation
['Philip R. Thompson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Philip_R._Thompson property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18694588
SYSTEM
United States representative, Member of the United States House of Representatives from Virginia
Q13218630 Q18694588
(Q1559995,P39,c(Q12737077))
action filter_type
action find
entity Q1559995
relation P39
type Q12737077
The [ANSWERS] were the positions occupied by Philip R. Thompson
['Q1559995', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1559995 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
United States representative Member of the United States House of Representatives from Virginia
The United States representative and Member of the United States House of Representatives from Virginia were the positions occupied by Philip R. Thompson
United States representative Member of the United States House of Representatives from Virginia
action filter_type
action find
entity Philip R. Thompson
relation position held
type occupation
['Philip R. Thompson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Philip_R._Thompson property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q13218630
P17
Q15617994
USER
Which administrative territory is that occupation located in ?
(Q13218630,P17,c(Q15617994))
action filter_type
action find
entity Q13218630
relation P17
type Q15617994
['Q13218630', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q13218630 property:P17 ?g }
United States representative
action filter_type
action find
entity United States representative
relation country
type designation for an administrative territorial entity
['United States representative', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_representative property:country ?g }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q18694588
SYSTEM
Did you mean Member of the United States House of Representatives from Virginia ?
Q13218630 Q18694588
(Q13218630,P17,c(Q15617994)) (Q18694588,P17,c(Q15617994))
[ANSWER]
['Q13218630', 'P17', {'concept': 'Q15617994'}] ['Q18694588', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q13218630 property:P17 ?g }
United States representative Member of the United States House of Representatives from Virginia
Did you mean Member of the United States House of Representatives from Virginia ?
Member of the United States House of Representatives from Virginia
['United States representative', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Member of the United States House of Representatives from Virginia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_representative property:country ?g }
[]
Simple Question (Coreferenced)
USER
No, I meant United States representative. Could you tell me the answer for that?
(Q13218630,P17,c(Q15617994))
Q13218630
['Q13218630', 'P17', {'concept': 'Q15617994'}]
['United States representative', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q13218630,P17,c(Q15617994))
action filter_type
action find
entity Q13218630
relation P17
type Q15617994
That occupation is located in [ANSWER]
['Q13218630', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q13218630 property:P17 ?g }
United States of America
That occupation is located in United States of America
United States of America
action filter_type
action find
entity United States representative
relation country
type designation for an administrative territorial entity
['United States representative', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_representative property:country ?g }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q553684
P17
Q15617994
USER
Is that one present in Hinzenburg ?
(Q30,P17,Q553684)
action is_in
entity Q553684
action find
entity Q30
relation P17
['Q30', 'P17', 'Q553684']
ASK WHERE { resource:Q30 property:P17 resource:Q553684 }
United States of America Hinzenburg
action is_in
entity Hinzenburg
action find
entity United States of America
relation country
['United States of America', 'country', 'Hinzenburg']
ASK WHERE { resource:United_States_of_America property:country resource:Hinzenburg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q30,P17,Q553684)
action is_in
entity Q553684
action find
entity Q30
relation P17
[ANSWER]
['Q30', 'P17', 'Q553684']
ASK WHERE { resource:Q30 property:P17 resource:Q553684 }
No
action is_in
entity Hinzenburg
action find
entity United States of America
relation country
['United States of America', 'country', 'Hinzenburg']
ASK WHERE { resource:United_States_of_America property:country resource:Hinzenburg }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with exactly 4 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 4
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?j = 4 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?j ) WHERE { ?b property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?b } }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?j = 4 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?j ) WHERE { ?b property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q32 Q34 Q884
SYSTEM
Luxembourg, Sweden, South Korea
Q889 Q884 Q881 Q32 Q34 Q423 Q843 Q227 Q1033
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 4
[ANSWERS] have diplomatic relations with exactly 4 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?j = 4 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?j ) WHERE { ?b property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?b } }
Afghanistan South Korea Vietnam Luxembourg Sweden North Korea Pakistan Azerbaijan Nigeria
Luxembourg, Sweden and South Korea have diplomatic relations with exactly 4 administrative territories
Luxembourg Sweden South Korea
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?j = 4 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?j ) WHERE { ?b property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q32
P551
Q502895
USER
Which people dwell at that administrative territory ?
(c(Q502895),P551,Q32)
action filter_type
action find_reverse
entity Q32
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q32']
SELECT DISTINCT ?l WHERE { ?l property:P551 resource:Q32 . ?l rdf:type ontology:Q502895 }
Luxembourg
action filter_type
action find_reverse
entity Luxembourg
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Luxembourg']
SELECT DISTINCT ?l WHERE { ?l property:residence resource:Luxembourg . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q884
SYSTEM
Did you mean South Korea ?
Q32 Q34 Q884
(c(Q502895),P551,Q32) (c(Q502895),P551,Q34) (c(Q502895),P551,Q884)
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q32'] [{'concept': 'Q502895'}, 'P551', 'Q34'] [{'concept': 'Q502895'}, 'P551', 'Q884']
SELECT DISTINCT ?l WHERE { ?l property:P551 resource:Q32 . ?l rdf:type ontology:Q502895 }
Luxembourg Sweden South Korea
Did you mean South Korea ?
South Korea
[{'concept': 'common name'}, 'residence', 'Luxembourg'] [{'concept': 'common name'}, 'residence', 'Sweden'] [{'concept': 'common name'}, 'residence', 'South Korea']
SELECT DISTINCT ?l WHERE { ?l property:residence resource:Luxembourg . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Luxembourg. Could you tell me the answer for that?
(c(Q502895),P551,Q32)
Q32
[{'concept': 'Q502895'}, 'P551', 'Q32']
[{'concept': 'common name'}, 'residence', 'Luxembourg']
[]
Q26791874 Q3351246
SYSTEM
Nicolas Auzanneau, Olivier Mutis
Q26791874 Q3351246
(c(Q502895),P551,Q32)
action filter_type
action find_reverse
entity Q32
relation P551
type Q502895
[ANSWERS] dwell at that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q32']
SELECT DISTINCT ?l WHERE { ?l property:P551 resource:Q32 . ?l rdf:type ontology:Q502895 }
Nicolas Auzanneau Olivier Mutis
Nicolas Auzanneau and Olivier Mutis dwell at that administrative territory
Nicolas Auzanneau Olivier Mutis
action filter_type
action find_reverse
entity Luxembourg
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Luxembourg']
SELECT DISTINCT ?l WHERE { ?l property:residence resource:Luxembourg . ?l rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q80284
P1303
Q34379 Q502895
USER
Which musical instruments are played by less number of people than viola ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q80284
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:Q502895 . ?e property:P1303 resource:Q80284 } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?f ) WHERE { ?r rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?r } GROUP BY ?r } }
viola
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity viola
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:common_name . ?e property:instrument resource:viola } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?f ) WHERE { ?r rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?r } GROUP BY ?r } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q80284
relation P1303
type Q502895
[ANSWERS] are played by less number of people than viola
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:Q502895 . ?e property:P1303 resource:Q80284 } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?f ) WHERE { ?r rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?r } GROUP BY ?r } }
lyre acoustic bass guitar Body percussion 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 Tsuzumi geomungo cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by less number of people than viola
davul harpsichord Wurlitzer electric piano
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity viola
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:common_name . ?e property:instrument resource:viola } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?f ) WHERE { ?r rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?r } GROUP BY ?r } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17055179 Q553684
P17
Q1048835
USER
Which political territories are Hinzenburg or New Zealand general election, 1925 situated in ?
OR((Q553684,P17,c(Q1048835)), (Q17055179,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q553684
relation P17
action find
entity Q17055179
relation P17
type Q1048835
{'OR': [['Q553684', 'P17', {'concept': 'Q1048835'}], ['Q17055179', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { ?g property:P17 ?t . VALUES ( ?g ) { ( resource:Q553684 ) ( resource:Q17055179 ) } } . ?t rdf:type ontology:Q1048835 }
New Zealand general election, 1925 Hinzenburg
action filter_type
action union
action find
entity Hinzenburg
relation country
action find
entity New Zealand general election, 1925
relation country
type political territorial entity
{'OR': [['Hinzenburg', 'country', {'concept': 'political territorial entity'}], ['New Zealand general election, 1925', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?g property:country ?t . VALUES ( ?g ) { ( resource:Hinzenburg ) ( resource:New_Zealand_general_election,_1925 ) } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q183
SYSTEM
New Zealand, Germany
Q664 Q183
OR((Q553684,P17,c(Q1048835)), (Q17055179,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q553684
relation P17
action find
entity Q17055179
relation P17
type Q1048835
[ANSWERS] are Hinzenburg or New Zealand general election, 1925 situated in
{'OR': [['Q553684', 'P17', {'concept': 'Q1048835'}], ['Q17055179', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { ?g property:P17 ?t . VALUES ( ?g ) { ( resource:Q553684 ) ( resource:Q17055179 ) } } . ?t rdf:type ontology:Q1048835 }
New Zealand Germany
New Zealand and Germany are Hinzenburg or New Zealand general election, 1925 situated in
New Zealand Germany
action filter_type
action union
action find
entity Hinzenburg
relation country
action find
entity New Zealand general election, 1925
relation country
type political territorial entity
{'OR': [['Hinzenburg', 'country', {'concept': 'political territorial entity'}], ['New Zealand general election, 1925', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?g property:country ?t . VALUES ( ?g ) { ( resource:Hinzenburg ) ( resource:New_Zealand_general_election,_1925 ) } } . ?t rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q985585
P530
Q1048835
USER
Do Itajubá have diplomatic relations with those ones ?
(Q985585,P530,Q664) (Q985585,P530,Q183)
action is_in
entity prev_answer
action find
entity Q985585
relation P530
['Q985585', 'P530', 'Q664'] ['Q985585', 'P530', 'Q183']
ASK WHERE { VALUES ( ?g ) { ( resource:Q664 ) ( resource:Q183 ) } . resource:Q985585 property:P530 ?g }
Itajubá
action is_in
entity prev_answer
action find
entity Itajubá
relation diplomatic relation
['Itajubá', 'diplomatic relation', 'New Zealand'] ['Itajubá', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?g ) { ( resource:New_Zealand ) ( resource:Germany ) } . resource:Itajubá property:diplomatic_relation ?g }
[]
political territorial entity
SYSTEM
NO
(Q985585,P530,Q664) (Q985585,P530,Q183)
action is_in
entity prev_answer
action find
entity Q985585
relation P530
[ANSWER]
['Q985585', 'P530', 'Q664'] ['Q985585', 'P530', 'Q183']
ASK WHERE { VALUES ( ?g ) { ( resource:Q664 ) ( resource:Q183 ) } . resource:Q985585 property:P530 ?g }
No
action is_in
entity prev_answer
action find
entity Itajubá
relation diplomatic relation
['Itajubá', 'diplomatic relation', 'New Zealand'] ['Itajubá', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?g ) { ( resource:New_Zealand ) ( resource:Germany ) } . resource:Itajubá property:diplomatic_relation ?g }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q13218630 Q55107
P1001
Q15617994
USER
Does Santo Stefano del Sole belong to jurisdiction of United States representative ?
(Q13218630,P1001,Q55107)
action is_in
entity Q55107
action find
entity Q13218630
relation P1001
['Q13218630', 'P1001', 'Q55107']
ASK WHERE { resource:Q13218630 property:P1001 resource:Q55107 }
United States representative Santo Stefano del Sole
action is_in
entity Santo Stefano del Sole
action find
entity United States representative
relation applies to jurisdiction
['United States representative', 'applies to jurisdiction', 'Santo Stefano del Sole']
ASK WHERE { resource:United_States_representative property:applies_to_jurisdiction resource:Santo_Stefano_del_Sole }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q13218630,P1001,Q55107)
action is_in
entity Q55107
action find
entity Q13218630
relation P1001
[ANSWER]
['Q13218630', 'P1001', 'Q55107']
ASK WHERE { resource:Q13218630 property:P1001 resource:Q55107 }
No
action is_in
entity Santo Stefano del Sole
action find
entity United States representative
relation applies to jurisdiction
['United States representative', 'applies to jurisdiction', 'Santo Stefano del Sole']
ASK WHERE { resource:United_States_representative property:applies_to_jurisdiction resource:Santo_Stefano_del_Sole }
[]