Simple Question (Direct)
Simple Question
Q561835
P241
Q781132
USER
Which military branch is Armand Gatti affiliated to ?
(Q561835,P241,c(Q781132))
action filter_type
action find
entity Q561835
relation P241
type Q781132
['Q561835', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q781132 . resource:Q561835 property:P241 ?p }
Armand Gatti
action filter_type
action find
entity Armand Gatti
relation military branch
type military branch
['Armand Gatti', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:military_branch . resource:Armand_Gatti property:military_branch ?p }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q561835,P241,c(Q781132))
action filter_type
action find
entity Q561835
relation P241
type Q781132
Armand Gatti is affiliated with [ANSWER]
['Q561835', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q781132 . resource:Q561835 property:P241 ?p }
British Army
Armand Gatti is affiliated with British Army
British Army
action filter_type
action find
entity Armand Gatti
relation military branch
type military branch
['Armand Gatti', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:military_branch . resource:Armand_Gatti property:military_branch ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q561835
P108
Q11032
USER
Which newspapers are the workplaces of that person ?
(Q222595,P108,c(Q11032))
action filter_type
action find
entity Q561835
relation P108
type Q11032
['Q222595', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?g WHERE { resource:Q561835 property:P108 ?g . ?g rdf:type ontology:Q11032 }
Armand Gatti
action filter_type
action find
entity Armand Gatti
relation employer
type newspaper
['British Army', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?g WHERE { resource:Armand_Gatti property:employer ?g . ?g rdf:type ontology:newspaper }
[]
newspaper
Q13717 Q646229 Q142348
SYSTEM
Libération, L'Express, Le Parisien
Q13717 Q646229 Q142348
(Q222595,P108,c(Q11032))
action filter_type
action find
entity Q561835
relation P108
type Q11032
[ANSWERS] are the workplaces of that person
['Q222595', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?g WHERE { resource:Q561835 property:P108 ?g . ?g rdf:type ontology:Q11032 }
Libération L'Express Le Parisien
Libération, L'Express and Le Parisien are the workplaces of that person
Libération L'Express Le Parisien
action filter_type
action find
entity Armand Gatti
relation employer
type newspaper
['British Army', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?g WHERE { resource:Armand_Gatti property:employer ?g . ?g rdf:type ontology:newspaper }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1639238 Q222595
P138
Q502895
USER
Which people are the origin of British Army or Newton ?
OR((Q222595,P138,c(Q502895)), (Q1639238,P138,c(Q502895)))
action filter_type
action union
action find
entity Q222595
relation P138
action find
entity Q1639238
relation P138
type Q502895
{'OR': [['Q222595', 'P138', {'concept': 'Q502895'}], ['Q1639238', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q222595 property:P138 ?c } UNION { resource:Q1639238 property:P138 ?c } } . ?c rdf:type ontology:Q502895 }
Newton British Army
action filter_type
action union
action find
entity British Army
relation named after
action find
entity Newton
relation named after
type common name
{'OR': [['British Army', 'named after', {'concept': 'common name'}], ['Newton', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:British_Army property:named_after ?c } UNION { resource:Newton property:named_after ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q935 Q9682
SYSTEM
Isaac Newton, Elizabeth II
Q935 Q9682
OR((Q222595,P138,c(Q502895)), (Q1639238,P138,c(Q502895)))
action filter_type
action union
action find
entity Q222595
relation P138
action find
entity Q1639238
relation P138
type Q502895
[ANSWERS] are the origin of British Army or Newton
{'OR': [['Q222595', 'P138', {'concept': 'Q502895'}], ['Q1639238', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q222595 property:P138 ?c } UNION { resource:Q1639238 property:P138 ?c } } . ?c rdf:type ontology:Q502895 }
Isaac Newton Elizabeth II
Isaac Newton and Elizabeth II are the origin of British Army or Newton
Isaac Newton Elizabeth II
action filter_type
action union
action find
entity British Army
relation named after
action find
entity Newton
relation named after
type common name
{'OR': [['British Army', 'named after', {'concept': 'common name'}], ['Newton', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:British_Army property:named_after ?c } UNION { resource:Newton property:named_after ?c } } . ?c 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 do atmost 1309 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1309
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q34379 . ?i property:P1303 ?z } GROUP BY ?z } . FILTER ( ?b <= 1309 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1309
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:common_name . ?z rdf:type ontology:musical_instrument . ?i property:instrument ?z } GROUP BY ?z } . FILTER ( ?b <= 1309 ) }
[]
musical instrument common name
SYSTEM
60
Q80284 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 count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1309
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q34379 . ?i property:P1303 ?z } GROUP BY ?z } . FILTER ( ?b <= 1309 ) }
viola 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
60
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1309
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:common_name . ?z rdf:type ontology:musical_instrument . ?i property:instrument ?z } GROUP BY ?z } . FILTER ( ?b <= 1309 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 413 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 413
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?p >= 413 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 413
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?p >= 413 ) }
[]
musical instrument common name
Q5994 Q46185 Q80019
SYSTEM
piano, bass guitar, double bass
Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 413
[ANSWERS] can atleast 413 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?p >= 413 ) }
bass guitar double bass piano trumpet cello violin organ drum kit
Piano, bass guitar and double bass can atleast 413 people perform with
piano bass guitar double bass
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 413
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?p >= 413 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q561835
P27
Q15617994
USER
How many administrative territories are the native countriesof Armand Gatti ?
(Q561835,P27,c(Q15617994))
action count
action filter_type
action find
entity Q561835
relation P27
type Q15617994
['Q561835', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q561835 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Armand Gatti
action count
action filter_type
action find
entity Armand Gatti
relation country of citizenship
type designation for an administrative territorial entity
['Armand Gatti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Armand_Gatti property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q561835,P27,c(Q15617994))
action count
action filter_type
action find
entity Q561835
relation P27
type Q15617994
[ANSWER]
['Q561835', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q561835 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
France
1
action count
action filter_type
action find
entity Armand Gatti
relation country of citizenship
type designation for an administrative territorial entity
['Armand Gatti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Armand_Gatti property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3151402
Q15617994
USER
And what about Frits Eschauzier?
(Q3151402,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3151402
relation P27
type Q15617994
['Q3151402', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q3151402 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Frits Eschauzier
action count
action filter_type
action find
entity Frits Eschauzier
relation country of citizenship
type designation for an administrative territorial entity
['Frits Eschauzier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Frits_Eschauzier property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q3151402,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3151402
relation P27
type Q15617994
[ANSWER]
['Q3151402', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q3151402 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Frits Eschauzier
relation country of citizenship
type designation for an administrative territorial entity
['Frits Eschauzier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Frits_Eschauzier property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3588777 Q561835
P27
Q15617994
USER
Which administrative territories do Armand Gatti or Émile Vandenbergh belong to ?
OR((Q561835,P27,c(Q15617994)), (Q3588777,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q561835
relation P27
action find
entity Q3588777
relation P27
type Q15617994
{'OR': [['Q561835', 'P27', {'concept': 'Q15617994'}], ['Q3588777', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q3588777 property:P27 ?i } UNION { resource:Q561835 property:P27 ?i } } }
Émile Vandenbergh Armand Gatti
action filter_type
action union
action find
entity Armand Gatti
relation country of citizenship
action find
entity Émile Vandenbergh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Armand Gatti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Émile Vandenbergh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Émile_Vandenbergh property:country_of_citizenship ?i } UNION { resource:Armand_Gatti property:country_of_citizenship ?i } } }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
OR((Q561835,P27,c(Q15617994)), (Q3588777,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q561835
relation P27
action find
entity Q3588777
relation P27
type Q15617994
Armand Gatti or Émile Vandenbergh belong to [ANSWER]
{'OR': [['Q561835', 'P27', {'concept': 'Q15617994'}], ['Q3588777', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q3588777 property:P27 ?i } UNION { resource:Q561835 property:P27 ?i } } }
France
Armand Gatti or Émile Vandenbergh belong to France
France
action filter_type
action union
action find
entity Armand Gatti
relation country of citizenship
action find
entity Émile Vandenbergh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Armand Gatti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Émile Vandenbergh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Émile_Vandenbergh property:country_of_citizenship ?i } UNION { resource:Armand_Gatti property:country_of_citizenship ?i } } }
[]