Simple Question (Direct)
Simple Question
Q21015018
P69
Q874405
USER
Which social group is the alma mater of Alain Puiseux ?
(Q21015018,P69,c(Q874405))
action filter_type
action find
entity Q21015018
relation P69
type Q874405
['Q21015018', 'P69', {'concept': 'Q874405'}]
SELECT DISTINCT ?z WHERE { resource:Q21015018 property:P69 ?z . ?z rdf:type ontology:Q874405 }
Alain Puiseux
action filter_type
action find
entity Alain Puiseux
relation educated at
type social group
['Alain Puiseux', 'educated at', {'concept': 'social group'}]
SELECT DISTINCT ?z WHERE { resource:Alain_Puiseux property:educated_at ?z . ?z rdf:type ontology:social_group }
[]
social group
Q3578450
SYSTEM
Lille school of journalism - École supérieure de journalisme de Lille
Q3578450
(Q21015018,P69,c(Q874405))
action filter_type
action find
entity Q21015018
relation P69
type Q874405
[ANSWER] is the alma mater of Alain Puiseux
['Q21015018', 'P69', {'concept': 'Q874405'}]
SELECT DISTINCT ?z WHERE { resource:Q21015018 property:P69 ?z . ?z rdf:type ontology:Q874405 }
Lille school of journalism - École supérieure de journalisme de Lille
Lille school of journalism - École supérieure de journalisme de Lille is the alma mater of Alain Puiseux
Lille school of journalism - École supérieure de journalisme de Lille
action filter_type
action find
entity Alain Puiseux
relation educated at
type social group
['Alain Puiseux', 'educated at', {'concept': 'social group'}]
SELECT DISTINCT ?z WHERE { resource:Alain_Puiseux property:educated_at ?z . ?z rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21015018
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q3578450,P27,c(Q15617994))
action filter_type
action find
entity Q21015018
relation P27
type Q15617994
['Q3578450', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q21015018 property:P27 ?o }
Alain Puiseux
action filter_type
action find
entity Alain Puiseux
relation country of citizenship
type designation for an administrative territorial entity
['Lille school of journalism - École supérieure de journalisme de Lille', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alain_Puiseux property:country_of_citizenship ?o }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3578450,P27,c(Q15617994))
action filter_type
action find
entity Q21015018
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q3578450', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q21015018 property:P27 ?o }
France
The France is the country of citizenship of that person
France
action filter_type
action find
entity Alain Puiseux
relation country of citizenship
type designation for an administrative territorial entity
['Lille school of journalism - École supérieure de journalisme de Lille', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alain_Puiseux property:country_of_citizenship ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q142 Q1008204
P47
Q15617994
USER
Is Lok, Levice District bordered by that one ?
(Q142,P47,Q1008204)
action is_in
entity Q1008204
action find
entity Q142
relation P47
['Q142', 'P47', 'Q1008204']
ASK WHERE { resource:Q142 property:P47 resource:Q1008204 }
France Lok, Levice District
action is_in
entity Lok, Levice District
action find
entity France
relation shares border with
['France', 'shares border with', 'Lok, Levice District']
ASK WHERE { resource:France property:shares_border_with resource:Lok,_Levice_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q142,P47,Q1008204)
action is_in
entity Q1008204
action find
entity Q142
relation P47
[ANSWER]
['Q142', 'P47', 'Q1008204']
ASK WHERE { resource:Q142 property:P47 resource:Q1008204 }
No
action is_in
entity Lok, Levice District
action find
entity France
relation shares border with
['France', 'shares border with', 'Lok, Levice District']
ASK WHERE { resource:France property:shares_border_with resource:Lok,_Levice_District }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with approximately 11 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 11
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?z = 11 ) . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?z ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?h } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 11
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?z = 11 ) . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?z ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 11
[ANSWERS] are known to have diplomatic connections with approximately 11 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?z = 11 ) . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?z ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?h } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria are known to have diplomatic connections with approximately 11 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 11
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?z = 11 ) . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?z ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35 Q16 Q40
P463
Q874405
USER
What social groups were Denmark, Canada and Austria a member of ?
(Q35,P463,c(Q874405)) (Q16,P463,c(Q874405)) (Q40,P463,c(Q874405))
action union
action filter_type
action find
entity Q35
relation P463
type Q874405
action filter_type
action find
entity Q16
relation P463
type Q874405
action filter_type
action find
entity Q40
relation P463
type Q874405
['Q35', 'P463', {'concept': 'Q874405'}] ['Q16', 'P463', {'concept': 'Q874405'}] ['Q40', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { { resource:Q35 property:P463 ?o . ?o rdf:type ontology:Q874405 } UNION { resource:Q16 property:P463 ?o . ?o rdf:type ontology:Q874405 } }
Denmark Canada Austria
action union
action filter_type
action find
entity Denmark
relation member of
type social group
action filter_type
action find
entity Canada
relation member of
type social group
action filter_type
action find
entity Austria
relation member of
type social group
['Denmark', 'member of', {'concept': 'social group'}] ['Canada', 'member of', {'concept': 'social group'}] ['Austria', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { { resource:Denmark property:member_of ?o . ?o rdf:type ontology:social_group } UNION { resource:Canada property:member_of ?o . ?o rdf:type ontology:social_group } }
[]
social group
Q8908 Q8908 Q38130
SYSTEM
Council of Europe for 1st, 2nd, League of Nations for 3rd
Q782942 Q8908 Q38130 Q782942 Q782942 Q8908
(Q35,P463,c(Q874405)) (Q16,P463,c(Q874405)) (Q40,P463,c(Q874405))
action union
action filter_type
action find
entity Q35
relation P463
type Q874405
action filter_type
action find
entity Q16
relation P463
type Q874405
action filter_type
action find
entity Q40
relation P463
type Q874405
[ANSWERS]
['Q35', 'P463', {'concept': 'Q874405'}] ['Q16', 'P463', {'concept': 'Q874405'}] ['Q40', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { { resource:Q35 property:P463 ?o . ?o rdf:type ontology:Q874405 } UNION { resource:Q16 property:P463 ?o . ?o rdf:type ontology:Q874405 } }
Australia Group Council of Europe League of Nations Australia Group Australia Group Council of Europe
The Council of Europe, Council of Europe and League of Nations were Denmark, Canada and Austria a member of
Council of Europe Council of Europe League of Nations
action union
action filter_type
action find
entity Denmark
relation member of
type social group
action filter_type
action find
entity Canada
relation member of
type social group
action filter_type
action find
entity Austria
relation member of
type social group
['Denmark', 'member of', {'concept': 'social group'}] ['Canada', 'member of', {'concept': 'social group'}] ['Austria', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { { resource:Denmark property:member_of ?o . ?o rdf:type ontology:social_group } UNION { resource:Canada property:member_of ?o . ?o rdf:type ontology:social_group } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q38130
P112
Q502895
USER
Who founded that social group ?
(Q38130,P112,c(Q502895))
action filter_type
action find
entity Q38130
relation P112
type Q502895
['Q38130', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q38130 property:P112 ?l . ?l rdf:type ontology:Q502895 }
League of Nations
action filter_type
action find
entity League of Nations
relation founder
type common name
['League of Nations', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:League_of_Nations property:founder ?l . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q8908
SYSTEM
Did you mean Council of Europe ?
Q8908 Q8908 Q38130
(Q8908,P112,c(Q502895)) (Q8908,P112,c(Q502895)) (Q38130,P112,c(Q502895))
[ANSWER]
['Q8908', 'P112', {'concept': 'Q502895'}] ['Q8908', 'P112', {'concept': 'Q502895'}] ['Q38130', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q38130 property:P112 ?l . ?l rdf:type ontology:Q502895 }
Council of Europe Council of Europe League of Nations
Did you mean Council of Europe ?
Council of Europe
['Council of Europe', 'founder', {'concept': 'common name'}] ['Council of Europe', 'founder', {'concept': 'common name'}] ['League of Nations', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:League_of_Nations property:founder ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant League of Nations. Could you tell me the answer for that?
(Q38130,P112,c(Q502895))
Q38130
['Q38130', 'P112', {'concept': 'Q502895'}]
['League of Nations', 'founder', {'concept': 'common name'}]
[]
Q34296
SYSTEM
Woodrow Wilson
Q34296
(Q38130,P112,c(Q502895))
action filter_type
action find
entity Q38130
relation P112
type Q502895
The [ANSWER] founded that social group
['Q38130', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q38130 property:P112 ?l . ?l rdf:type ontology:Q502895 }
Woodrow Wilson
The Woodrow Wilson founded that social group
Woodrow Wilson
action filter_type
action find
entity League of Nations
relation founder
type common name
['League of Nations', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:League_of_Nations property:founder ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately 1235 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1235
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?c = 1235 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1235
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?c = 1235 ) }
[]
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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1235
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?c = 1235 ) }
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 approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1235
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?c = 1235 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 2219 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2219
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?f ) WHERE { ?t rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?t } GROUP BY ?t } . FILTER ( ?f = 2219 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2219
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?f ) WHERE { ?t rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?t } GROUP BY ?t } . FILTER ( ?f = 2219 ) }
[]
musical instrument common name
Q46185 Q8338 Q8371
SYSTEM
bass guitar, trumpet, cello
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2219
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?f ) WHERE { ?t rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?t } GROUP BY ?t } . FILTER ( ?f = 2219 ) }
bass guitar trumpet cello organ drum kit
Which musical instruments can around 2219 people perform with
bass guitar trumpet cello
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2219
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?f ) WHERE { ?t rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?t } GROUP BY ?t } . FILTER ( ?f = 2219 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2235422 Q35
P530 P19
Q15617994
USER
Which administrative territories have diplomatic relationships with Denmark or are the birthplace of Riccardo Magrini ?
OR((Q35,P530,c(Q15617994)), (Q2235422,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q35
relation P530
action find
entity Q2235422
relation P19
type Q15617994
{'OR': [['Q35', 'P530', {'concept': 'Q15617994'}], ['Q2235422', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2235422 property:P19 ?k } UNION { resource:Q35 property:P530 ?k } } . ?k rdf:type ontology:Q15617994 }
Riccardo Magrini Denmark
action filter_type
action union
action find
entity Denmark
relation diplomatic relation
action find
entity Riccardo Magrini
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Riccardo Magrini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Riccardo_Magrini property:place_of_birth ?k } UNION { resource:Denmark property:diplomatic_relation ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q49605 Q38 Q953
SYSTEM
Brazil, Montecatini Terme, Italy, Zambia
Q155 Q49605 Q38 Q953
OR((Q35,P530,c(Q15617994)), (Q2235422,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q35
relation P530
action find
entity Q2235422
relation P19
type Q15617994
[ANSWERS] have diplomatic relationships with Denmark or are the birthplace of Riccardo Magrini
{'OR': [['Q35', 'P530', {'concept': 'Q15617994'}], ['Q2235422', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2235422 property:P19 ?k } UNION { resource:Q35 property:P530 ?k } } . ?k rdf:type ontology:Q15617994 }
Brazil Montecatini Terme Italy Zambia
Brazil, Montecatini Terme, Italy and Zambia have diplomatic relationships with Denmark or are the birthplace of Riccardo Magrini
Brazil Montecatini Terme Italy Zambia
action filter_type
action union
action find
entity Denmark
relation diplomatic relation
action find
entity Riccardo Magrini
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Riccardo Magrini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Riccardo_Magrini property:place_of_birth ?k } UNION { resource:Denmark property:diplomatic_relation ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]