Simple Question (Direct)
Simple Question
Q18537342
P410
Q4189293
USER
Which is the title held by Nicolae Alevra ?
(Q18537342,P410,c(Q4189293))
action filter_type
action find
entity Q18537342
relation P410
type Q4189293
['Q18537342', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q4189293 . resource:Q18537342 property:P410 ?j }
Nicolae Alevra
action filter_type
action find
entity Nicolae Alevra
relation military rank
type title
['Nicolae Alevra', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:title . resource:Nicolae_Alevra property:military_rank ?j }
[]
title
Q152956
SYSTEM
brigadier general
Q152956
(Q18537342,P410,c(Q4189293))
action filter_type
action find
entity Q18537342
relation P410
type Q4189293
The [ANSWER] the title held by Nicolae Alevra
['Q18537342', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q4189293 . resource:Q18537342 property:P410 ?j }
brigadier general
The brigadier general the title held by Nicolae Alevra
brigadier general
action filter_type
action find
entity Nicolae Alevra
relation military rank
type title
['Nicolae Alevra', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:title . resource:Nicolae_Alevra property:military_rank ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18537342
P106
Q4189293
USER
What does that person do for a living ?
(Q152956,P106,c(Q4189293))
action filter_type
action find
entity Q18537342
relation P106
type Q4189293
['Q152956', 'P106', {'concept': 'Q4189293'}]
SELECT DISTINCT ?z WHERE { resource:Q18537342 property:P106 ?z . ?z rdf:type ontology:Q4189293 }
Nicolae Alevra
action filter_type
action find
entity Nicolae Alevra
relation occupation
type title
['brigadier general', 'occupation', {'concept': 'title'}]
SELECT DISTINCT ?z WHERE { resource:Nicolae_Alevra property:occupation ?z . ?z rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q152956,P106,c(Q4189293))
action filter_type
action find
entity Q18537342
relation P106
type Q4189293
[ANSWER] that person does for a living
['Q152956', 'P106', {'concept': 'Q4189293'}]
SELECT DISTINCT ?z WHERE { resource:Q18537342 property:P106 ?z . ?z rdf:type ontology:Q4189293 }
general officer
General officer that person does for a living
general officer
action filter_type
action find
entity Nicolae Alevra
relation occupation
type title
['brigadier general', 'occupation', {'concept': 'title'}]
SELECT DISTINCT ?z WHERE { resource:Nicolae_Alevra property:occupation ?z . ?z rdf:type ontology:title }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do around 190 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 190
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P1303 ?r . ?x rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } . FILTER ( ?j = 190 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 190
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:instrument ?r . ?x rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } . FILTER ( ?j = 190 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
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 Q120585 Q713298 Q8371 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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 190
Around 190 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P1303 ?r . ?x rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } . FILTER ( ?j = 190 ) }
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 Tsuzumi geomungo cello 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
Around 190 people know about davul, harpsichord and Wurlitzer electric piano
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 190
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:instrument ?r . ?x rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } . FILTER ( ?j = 190 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q363704 Q1759986
P17
Q15617994
USER
Which administrative territories are Wurlitzer electric piano or Šaunštejn Castle situated in ?
OR((Q1759986,P17,c(Q15617994)), (Q363704,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q363704
relation P17
type Q15617994
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q363704', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1759986 property:P17 ?q } UNION { resource:Q363704 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Šaunštejn Castle Wurlitzer electric piano
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Šaunštejn Castle
relation country
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Šaunštejn Castle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Wurlitzer_electric_piano property:country ?q } UNION { resource:Šaunštejn_Castle property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q30
SYSTEM
Czech Republic, United States of America
Q213 Q30
OR((Q1759986,P17,c(Q15617994)), (Q363704,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q363704
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q363704', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1759986 property:P17 ?q } UNION { resource:Q363704 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Czech Republic United States of America
Which administrative territories are Wurlitzer electric piano or Šaunštejn Castle situated in
Czech Republic United States of America
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Šaunštejn Castle
relation country
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Šaunštejn Castle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Wurlitzer_electric_piano property:country ?q } UNION { resource:Šaunštejn_Castle property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:P530 ?m . ?l rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?n ) WHERE { ?w property:P530 ?i . ?w rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?n = ?d ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:diplomatic_relation ?m . ?l rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?n ) WHERE { ?w property:diplomatic_relation ?i . ?w rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?n = ?d ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have ambassadorial relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:P530 ?m . ?l rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?n ) WHERE { ?w property:P530 ?i . ?w rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?n = ?d ) }
Germany
Germany have ambassadorial relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?u ) WHERE { ?l property:diplomatic_relation ?m . ?l rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?n ) WHERE { ?w property:diplomatic_relation ?i . ?w rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?n = ?d ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P194
Q11204
USER
Which legislature is the legislative body for that political territory ?
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?r WHERE { resource:Q183 property:P194 ?r . ?r rdf:type ontology:Q11204 }
Germany
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?r WHERE { resource:Germany property:legislative_body ?r . ?r rdf:type ontology:legislature }
[]
legislature
Q146138
SYSTEM
Bundesrat
Q146138
(Q183,P194,c(Q11204))
action filter_type
action find
entity Q183
relation P194
type Q11204
[ANSWER] is the legislative body for that political territory
['Q183', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?r WHERE { resource:Q183 property:P194 ?r . ?r rdf:type ontology:Q11204 }
Bundesrat
Bundesrat is the legislative body for that political territory
Bundesrat
action filter_type
action find
entity Germany
relation legislative body
type legislature
['Germany', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?r WHERE { resource:Germany property:legislative_body ?r . ?r rdf:type ontology:legislature }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16472631 Q363704
P17
Q15617994
USER
Which administrative territories are Šaunštejn Castle or Skripteliai situated in ?
OR((Q363704,P17,c(Q15617994)), (Q16472631,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q363704
relation P17
action find
entity Q16472631
relation P17
type Q15617994
{'OR': [['Q363704', 'P17', {'concept': 'Q15617994'}], ['Q16472631', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { ?m property:P17 ?u . VALUES ( ?m ) { ( resource:Q363704 ) ( resource:Q16472631 ) } } . ?u rdf:type ontology:Q15617994 }
Skripteliai Šaunštejn Castle
action filter_type
action union
action find
entity Šaunštejn Castle
relation country
action find
entity Skripteliai
relation country
type designation for an administrative territorial entity
{'OR': [['Šaunštejn Castle', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Skripteliai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { ?m property:country ?u . VALUES ( ?m ) { ( resource:Šaunštejn_Castle ) ( resource:Skripteliai ) } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q37
SYSTEM
Czech Republic, Lithuania
Q213 Q37
OR((Q363704,P17,c(Q15617994)), (Q16472631,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q363704
relation P17
action find
entity Q16472631
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q363704', 'P17', {'concept': 'Q15617994'}], ['Q16472631', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { ?m property:P17 ?u . VALUES ( ?m ) { ( resource:Q363704 ) ( resource:Q16472631 ) } } . ?u rdf:type ontology:Q15617994 }
Czech Republic Lithuania
Which administrative territories are Šaunštejn Castle or Skripteliai situated in
Czech Republic Lithuania
action filter_type
action union
action find
entity Šaunštejn Castle
relation country
action find
entity Skripteliai
relation country
type designation for an administrative territorial entity
{'OR': [['Šaunštejn Castle', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Skripteliai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { ?m property:country ?u . VALUES ( ?m ) { ( resource:Šaunštejn_Castle ) ( resource:Skripteliai ) } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q36
P47
Q15617994
USER
Are Poland bordered by those ones ?
(Q36,P47,Q213) (Q36,P47,Q37)
action is_in
entity prev_answer
action find
entity Q36
relation P47
['Q36', 'P47', 'Q213'] ['Q36', 'P47', 'Q37']
ASK WHERE { VALUES ( ?n ) { ( resource:Q213 ) ( resource:Q37 ) } . resource:Q36 property:P47 ?n }
Poland
action is_in
entity prev_answer
action find
entity Poland
relation shares border with
['Poland', 'shares border with', 'Czech Republic'] ['Poland', 'shares border with', 'Lithuania']
ASK WHERE { VALUES ( ?n ) { ( resource:Czech_Republic ) ( resource:Lithuania ) } . resource:Poland property:shares_border_with ?n }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q36,P47,Q213) (Q36,P47,Q37)
action is_in
entity prev_answer
action find
entity Q36
relation P47
[ANSWER]
['Q36', 'P47', 'Q213'] ['Q36', 'P47', 'Q37']
ASK WHERE { VALUES ( ?n ) { ( resource:Q213 ) ( resource:Q37 ) } . resource:Q36 property:P47 ?n }
Yes
action is_in
entity prev_answer
action find
entity Poland
relation shares border with
['Poland', 'shares border with', 'Czech Republic'] ['Poland', 'shares border with', 'Lithuania']
ASK WHERE { VALUES ( ?n ) { ( resource:Czech_Republic ) ( resource:Lithuania ) } . resource:Poland property:shares_border_with ?n }
[]