Simple Question (Direct)
Simple Question
Q7174004
P102
Q7210356
USER
Which party is Peter Fitzpatrick affiliated with ?
(Q7174004,P102,c(Q7210356))
action filter_type
action find
entity Q7174004
relation P102
type Q7210356
['Q7174004', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7210356 . resource:Q7174004 property:P102 ?i }
Peter Fitzpatrick
action filter_type
action find
entity Peter Fitzpatrick
relation member of political party
type political organization
['Peter Fitzpatrick', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_organization . resource:Peter_Fitzpatrick property:member_of_political_party ?i }
[]
political organization
Q247135
SYSTEM
Fine Gael
Q247135
(Q7174004,P102,c(Q7210356))
action filter_type
action find
entity Q7174004
relation P102
type Q7210356
Peter Fitzpatrick is affiliated with [ANSWER]
['Q7174004', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7210356 . resource:Q7174004 property:P102 ?i }
Fine Gael
Peter Fitzpatrick is affiliated with Fine Gael
Fine Gael
action filter_type
action find
entity Peter Fitzpatrick
relation member of political party
type political organization
['Peter Fitzpatrick', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_organization . resource:Peter_Fitzpatrick property:member_of_political_party ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q247135
P112
Q502895
USER
Which person was the founder of that political organization ?
(Q247135,P112,c(Q502895))
action filter_type
action find
entity Q247135
relation P112
type Q502895
['Q247135', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q247135 property:P112 ?v . ?v rdf:type ontology:Q502895 }
Fine Gael
action filter_type
action find
entity Fine Gael
relation founder
type common name
['Fine Gael', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Fine_Gael property:founder ?v . ?v rdf:type ontology:common_name }
[]
common name
Q465770
SYSTEM
W. T. Cosgrave
Q465770
(Q247135,P112,c(Q502895))
action filter_type
action find
entity Q247135
relation P112
type Q502895
[ANSWER] was the founder of that political organization
['Q247135', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q247135 property:P112 ?v . ?v rdf:type ontology:Q502895 }
W. T. Cosgrave
W. T. Cosgrave was the founder of that political organization
W. T. Cosgrave
action filter_type
action find
entity Fine Gael
relation founder
type common name
['Fine Gael', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Fine_Gael property:founder ?v . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P6
Q35798
USER
How many executive branches are that person the head of the goverment of ?
(c(Q35798),P6,Q465770)
action count
action filter_type
action find_reverse
entity Q465770
relation P6
type Q35798
[{'concept': 'Q35798'}, 'P6', 'Q465770']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ontology:Q35798 . ?i property:P6 resource:Q465770 }
action count
action filter_type
action find_reverse
entity W. T. Cosgrave
relation head of government
type executive branch
[{'concept': 'executive branch'}, 'head of government', 'W. T. Cosgrave']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ontology:executive_branch . ?i property:head_of_government resource:W._T._Cosgrave }
[]
executive branch
SYSTEM
3
Q5589379 Q5589376 Q5589382
(c(Q35798),P6,Q465770)
action count
action filter_type
action find_reverse
entity Q465770
relation P6
type Q35798
[ANSWER]
[{'concept': 'Q35798'}, 'P6', 'Q465770']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ontology:Q35798 . ?i property:P6 resource:Q465770 }
Government of the 4th Dáil Government of the 3rd Dáil Government of the 5th Dáil
3
action count
action filter_type
action find_reverse
entity W. T. Cosgrave
relation head of government
type executive branch
[{'concept': 'executive branch'}, 'head of government', 'W. T. Cosgrave']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ontology:executive_branch . ?i property:head_of_government resource:W._T._Cosgrave }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q465770
P21
Q290
USER
Which sex does W. T. Cosgrave possess ?
(Q465770,P21,c(Q290))
action filter_type
action find
entity Q465770
relation P21
type Q290
['Q465770', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q465770 property:P21 ?f }
W. T. Cosgrave
action filter_type
action find
entity W. T. Cosgrave
relation gender
type sex
['W. T. Cosgrave', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:W._T._Cosgrave property:gender ?f }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q465770,P21,c(Q290))
action filter_type
action find
entity Q465770
relation P21
type Q290
W. T. Cosgrave possesses a [ANSWER]
['Q465770', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q465770 property:P21 ?f }
male
W. T. Cosgrave possesses a male
male
action filter_type
action find
entity W. T. Cosgrave
relation gender
type sex
['W. T. Cosgrave', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:W._T._Cosgrave property:gender ?f }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6138237
Q290
USER
And what about James Lott?
(Q6138237,P21,c(Q290))
action filter_type
action find
entity Q6138237
relation P21
type Q290
['Q6138237', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q6138237 property:P21 ?u . ?u rdf:type ontology:Q290 }
James Lott
action filter_type
action find
entity James Lott
relation gender
type sex
['James Lott', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:James_Lott property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6138237,P21,c(Q290))
action filter_type
action find
entity Q6138237
relation P21
type Q290
[ANSWER]
['Q6138237', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q6138237 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity James Lott
relation gender
type sex
['James Lott', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:James_Lott property:gender ?u . ?u rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q1727705
P21
Q502895
USER
Does Kurt Pritzkoleit have the gender as that sex ?
(Q1727705,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q1727705
relation P21
['Q1727705', 'P21', 'Q6581097']
ASK WHERE { resource:Q1727705 property:P21 resource:Q6581097 }
male Kurt Pritzkoleit
action is_in
entity male
action find
entity Kurt Pritzkoleit
relation gender
['Kurt Pritzkoleit', 'gender', 'male']
ASK WHERE { resource:Kurt_Pritzkoleit property:gender resource:male }
[]
common name
SYSTEM
YES
(Q1727705,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q1727705
relation P21
[ANSWER]
['Q1727705', 'P21', 'Q6581097']
ASK WHERE { resource:Q1727705 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Kurt Pritzkoleit
relation gender
['Kurt Pritzkoleit', 'gender', 'male']
ASK WHERE { resource:Kurt_Pritzkoleit property:gender resource:male }
[]
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 around 654 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 654
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P1303 ?p . ?w rdf:type ontology:Q502895 . ?p rdf:type ontology:Q34379 } GROUP BY ?p } . FILTER ( ?u = 654 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 654
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:instrument ?p . ?w rdf:type ontology:common_name . ?p rdf:type ontology:musical_instrument } GROUP BY ?p } . FILTER ( ?u = 654 ) }
[]
musical instrument common name
SYSTEM
62
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 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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 654
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P1303 ?p . ?w rdf:type ontology:Q502895 . ?p rdf:type ontology:Q34379 } GROUP BY ?p } . FILTER ( ?u = 654 ) }
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 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
62
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 654
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:instrument ?p . ?w rdf:type ontology:common_name . ?p rdf:type ontology:musical_instrument } GROUP BY ?p } . FILTER ( ?u = 654 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5626609 Q7174004
P106
Q12737077
USER
Which occupations are the professions of Peter Fitzpatrick or Gönül Başaran Erönen ?
OR((Q7174004,P106,c(Q12737077)), (Q5626609,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7174004
relation P106
action find
entity Q5626609
relation P106
type Q12737077
{'OR': [['Q7174004', 'P106', {'concept': 'Q12737077'}], ['Q5626609', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . { { resource:Q7174004 property:P106 ?s } UNION { resource:Q5626609 property:P106 ?s } } }
Gönül Başaran Erönen Peter Fitzpatrick
action filter_type
action union
action find
entity Peter Fitzpatrick
relation occupation
action find
entity Gönül Başaran Erönen
relation occupation
type occupation
{'OR': [['Peter Fitzpatrick', 'occupation', {'concept': 'occupation'}], ['Gönül Başaran Erönen', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . { { resource:Peter_Fitzpatrick property:occupation ?s } UNION { resource:Gönül_Başaran_Erönen property:occupation ?s } } }
[]
occupation
Q16533 Q82955
SYSTEM
judge, politician
Q16533 Q82955
OR((Q7174004,P106,c(Q12737077)), (Q5626609,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7174004
relation P106
action find
entity Q5626609
relation P106
type Q12737077
The [ANSWERS] are the professions of Peter Fitzpatrick or Gönül Başaran Erönen
{'OR': [['Q7174004', 'P106', {'concept': 'Q12737077'}], ['Q5626609', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . { { resource:Q7174004 property:P106 ?s } UNION { resource:Q5626609 property:P106 ?s } } }
judge politician
The judge and politician are the professions of Peter Fitzpatrick or Gönül Başaran Erönen
judge politician
action filter_type
action union
action find
entity Peter Fitzpatrick
relation occupation
action find
entity Gönül Başaran Erönen
relation occupation
type occupation
{'OR': [['Peter Fitzpatrick', 'occupation', {'concept': 'occupation'}], ['Gönül Başaran Erönen', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . { { resource:Peter_Fitzpatrick property:occupation ?s } UNION { resource:Gönül_Başaran_Erönen property:occupation ?s } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q465770
P991
Q5354716
USER
Which Electionss in Ireland were W. T. Cosgrave elected from ?
(c(Q5354716),P991,Q465770)
action filter_type
action find_reverse
entity Q465770
relation P991
type Q5354716
[{'concept': 'Q5354716'}, 'P991', 'Q465770']
SELECT DISTINCT ?n WHERE { ?n property:P991 resource:Q465770 . ?n rdf:type ontology:Q5354716 }
W. T. Cosgrave
action filter_type
action find_reverse
entity W. T. Cosgrave
relation successful candidate
type Elections in Ireland
[{'concept': 'Elections in Ireland'}, 'successful candidate', 'W. T. Cosgrave']
SELECT DISTINCT ?n WHERE { ?n property:successful_candidate resource:W._T._Cosgrave . ?n rdf:type ontology:Elections_in_Ireland }
[]
Elections in Ireland
Q11918769 Q4887663 Q4887669
SYSTEM
Irish general election, September 1927, Irish general election, 1923, Irish general election, June 1927
Q11918769 Q4887663 Q4887669
(c(Q5354716),P991,Q465770)
action filter_type
action find_reverse
entity Q465770
relation P991
type Q5354716
[ANSWERS]
[{'concept': 'Q5354716'}, 'P991', 'Q465770']
SELECT DISTINCT ?n WHERE { ?n property:P991 resource:Q465770 . ?n rdf:type ontology:Q5354716 }
Irish general election, September 1927 Irish general election, 1923 Irish general election, June 1927
Irish general election, September 1927, Irish general election, 1923 and Irish general election, June 1927 were W. T. Cosgrave elected from
Irish general election, September 1927 Irish general election, 1923 Irish general election, June 1927
action filter_type
action find_reverse
entity W. T. Cosgrave
relation successful candidate
type Elections in Ireland
[{'concept': 'Elections in Ireland'}, 'successful candidate', 'W. T. Cosgrave']
SELECT DISTINCT ?n WHERE { ?n property:successful_candidate resource:W._T._Cosgrave . ?n rdf:type ontology:Elections_in_Ireland }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q465770
P20
Q515
USER
Which city is the place of death of W. T. Cosgrave ?
(Q465770,P20,c(Q515))
action filter_type
action find
entity Q465770
relation P20
type Q515
['Q465770', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q465770 property:P20 ?u . ?u rdf:type ontology:Q515 }
W. T. Cosgrave
action filter_type
action find
entity W. T. Cosgrave
relation place of death
type city
['W. T. Cosgrave', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:W._T._Cosgrave property:place_of_death ?u . ?u rdf:type ontology:city }
[]
city
Q1761
SYSTEM
Dublin
Q1761
(Q465770,P20,c(Q515))
action filter_type
action find
entity Q465770
relation P20
type Q515
[ANSWER] is the place of death of W. T. Cosgrave
['Q465770', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q465770 property:P20 ?u . ?u rdf:type ontology:Q515 }
Dublin
Dublin is the place of death of W. T. Cosgrave
Dublin
action filter_type
action find
entity W. T. Cosgrave
relation place of death
type city
['W. T. Cosgrave', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:W._T._Cosgrave property:place_of_death ?u . ?u rdf:type ontology:city }
[]