Simple Question (Direct)
Simple Question
Q7553700
P21
Q290
USER
What is the sex of Sofiane Attaf ?
(Q7553700,P21,c(Q290))
action filter_type
action find
entity Q7553700
relation P21
type Q290
['Q7553700', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q7553700 property:P21 ?z . ?z rdf:type ontology:Q290 }
Sofiane Attaf
action filter_type
action find
entity Sofiane Attaf
relation gender
type sex
['Sofiane Attaf', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Sofiane_Attaf property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7553700,P21,c(Q290))
action filter_type
action find
entity Q7553700
relation P21
type Q290
The sex of Sofiane Attaf is the [ANSWER]
['Q7553700', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q7553700 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Sofiane Attaf is the male
male
action filter_type
action find
entity Sofiane Attaf
relation gender
type sex
['Sofiane Attaf', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Sofiane_Attaf property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7553700
P27
Q15617994
USER
Which administrative territory is the native country of Sofiane Attaf ?
(Q7553700,P27,c(Q15617994))
action filter_type
action find
entity Q7553700
relation P27
type Q15617994
['Q7553700', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q7553700 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Sofiane Attaf
action filter_type
action find
entity Sofiane Attaf
relation country of citizenship
type designation for an administrative territorial entity
['Sofiane Attaf', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Sofiane_Attaf property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262
SYSTEM
Algeria
Q262
(Q7553700,P27,c(Q15617994))
action filter_type
action find
entity Q7553700
relation P27
type Q15617994
The [ANSWER] is the native country of Sofiane Attaf
['Q7553700', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q7553700 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Algeria
The Algeria is the native country of Sofiane Attaf
Algeria
action filter_type
action find
entity Sofiane Attaf
relation country of citizenship
type designation for an administrative territorial entity
['Sofiane Attaf', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Sofiane_Attaf property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q262
P172
Q502895
USER
Which person has that administrative territory as his/her ethnicity ?
(c(Q502895),P172,Q262)
action filter_type
action find_reverse
entity Q262
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q262']
SELECT DISTINCT ?t WHERE { ?t property:P172 resource:Q262 . ?t rdf:type ontology:Q502895 }
Algeria
action filter_type
action find_reverse
entity Algeria
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Algeria']
SELECT DISTINCT ?t WHERE { ?t property:ethnic_group resource:Algeria . ?t rdf:type ontology:common_name }
[]
common name
Q2090350
SYSTEM
Ali Dilem
Q2090350
(c(Q502895),P172,Q262)
action filter_type
action find_reverse
entity Q262
relation P172
type Q502895
[ANSWER] has that administrative territory as his/her ethnicity
[{'concept': 'Q502895'}, 'P172', 'Q262']
SELECT DISTINCT ?t WHERE { ?t property:P172 resource:Q262 . ?t rdf:type ontology:Q502895 }
Ali Dilem
Ali Dilem has that administrative territory as his/her ethnicity
Ali Dilem
action filter_type
action find_reverse
entity Algeria
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Algeria']
SELECT DISTINCT ?t WHERE { ?t property:ethnic_group resource:Algeria . ?t rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2090350 Q262 Q17266
P27
Q15617994
USER
Is that person a native of Algeria and Bassignana ?
(Q2090350,P27,Q262) (Q2090350,P27,Q17266)
action is_in
entity Q2090350
action intersection
action find_reverse
entity Q262
relation P27
action find_reverse
entity Q17266
relation P27
['Q2090350', 'P27', 'Q262'] ['Q2090350', 'P27', 'Q17266']
ASK WHERE { resource:Q2090350 property:P27 resource:Q262 . resource:Q2090350 property:P27 resource:Q17266 }
Ali Dilem Algeria Bassignana
action is_in
entity Ali Dilem
action intersection
action find_reverse
entity Algeria
relation country of citizenship
action find_reverse
entity Bassignana
relation country of citizenship
['Ali Dilem', 'country of citizenship', 'Algeria'] ['Ali Dilem', 'country of citizenship', 'Bassignana']
ASK WHERE { resource:Ali_Dilem property:country_of_citizenship resource:Algeria . resource:Ali_Dilem property:country_of_citizenship resource:Bassignana }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q2090350,P27,Q262) (Q2090350,P27,Q17266)
action is_in
entity Q2090350
action intersection
action find_reverse
entity Q262
relation P27
action find_reverse
entity Q17266
relation P27
[ANSWER]
['Q2090350', 'P27', 'Q262'] ['Q2090350', 'P27', 'Q17266']
ASK WHERE { resource:Q2090350 property:P27 resource:Q262 . resource:Q2090350 property:P27 resource:Q17266 }
YES and NO respectively
action is_in
entity Ali Dilem
action intersection
action find_reverse
entity Algeria
relation country of citizenship
action find_reverse
entity Bassignana
relation country of citizenship
['Ali Dilem', 'country of citizenship', 'Algeria'] ['Ali Dilem', 'country of citizenship', 'Bassignana']
ASK WHERE { resource:Ali_Dilem property:country_of_citizenship resource:Algeria . resource:Ali_Dilem property:country_of_citizenship resource:Bassignana }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q15617994 Q166142 Q15416
USER
How many administrative territories are approximately 65 applications and television programs set in ?
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 65
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?p WHERE { { ?y property:P840 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q166142 } UNION { ?y property:P840 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15416 } } GROUP BY ?p } . FILTER ( ?f = 65 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 65
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?p WHERE { { ?y property:narrative_location ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:application } UNION { ?y property:narrative_location ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:television_program } } GROUP BY ?p } . FILTER ( ?f = 65 ) }
[]
designation for an administrative territorial entity application television program
SYSTEM
5
Q668 Q145 Q41 Q155 Q96
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 65
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?p WHERE { { ?y property:P840 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q166142 } UNION { ?y property:P840 ?p . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15416 } } GROUP BY ?p } . FILTER ( ?f = 65 ) }
India United Kingdom Greece Brazil Mexico
5
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 65
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?p WHERE { { ?y property:narrative_location ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:application } UNION { ?y property:narrative_location ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:television_program } } GROUP BY ?p } . FILTER ( ?f = 65 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2090350
P166
Q618779
USER
What was awarded to Ali Dilem ?
(Q2090350,P166,c(Q618779))
action filter_type
action find
entity Q2090350
relation P166
type Q618779
['Q2090350', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?z WHERE { resource:Q2090350 property:P166 ?z . ?z rdf:type ontology:Q618779 }
Ali Dilem
action filter_type
action find
entity Ali Dilem
relation award received
type award
['Ali Dilem', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?z WHERE { resource:Ali_Dilem property:award_received ?z . ?z rdf:type ontology:award }
[]
award
Q13452528
SYSTEM
Chevalier de l'ordre des Arts et des Lettres‎
Q13452528
(Q2090350,P166,c(Q618779))
action filter_type
action find
entity Q2090350
relation P166
type Q618779
De [ANSWER] was awarded to Ali Dilem
['Q2090350', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?z WHERE { resource:Q2090350 property:P166 ?z . ?z rdf:type ontology:Q618779 }
Chevalier de l'ordre des Arts et des Lettres‎
De Chevalier de l'ordre des Arts et des Lettres‎ was awarded to Ali Dilem
Chevalier de l'ordre des Arts et des Lettres‎
action filter_type
action find
entity Ali Dilem
relation award received
type award
['Ali Dilem', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?z WHERE { resource:Ali_Dilem property:award_received ?z . ?z rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2090350
P108
Q11032
USER
Who is the employer of Ali Dilem ?
(Q2090350,P108,c(Q11032))
action filter_type
action find
entity Q2090350
relation P108
type Q11032
['Q2090350', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?w WHERE { resource:Q2090350 property:P108 ?w . ?w rdf:type ontology:Q11032 }
Ali Dilem
action filter_type
action find
entity Ali Dilem
relation employer
type newspaper
['Ali Dilem', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?w WHERE { resource:Ali_Dilem property:employer ?w . ?w rdf:type ontology:newspaper }
[]
newspaper
Q3237831
SYSTEM
Liberté
Q3237831
(Q2090350,P108,c(Q11032))
action filter_type
action find
entity Q2090350
relation P108
type Q11032
The employer of Ali Dilem is the [ANSWER]
['Q2090350', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?w WHERE { resource:Q2090350 property:P108 ?w . ?w rdf:type ontology:Q11032 }
Liberté
The employer of Ali Dilem is the Liberté
Liberté
action filter_type
action find
entity Ali Dilem
relation employer
type newspaper
['Ali Dilem', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?w WHERE { resource:Ali_Dilem property:employer ?w . ?w rdf:type ontology:newspaper }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q2090350
Q41298
USER
And which magazine?
(Q2090350,P108,c(Q41298))
action filter_type
action find
entity Q2090350
relation P108
type Q41298
['Q2090350', 'P108', {'concept': 'Q41298'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q41298 . resource:Q2090350 property:P108 ?y }
Ali Dilem
action filter_type
action find
entity Ali Dilem
relation employer
type magazine
['Ali Dilem', 'employer', {'concept': 'magazine'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:magazine . resource:Ali_Dilem property:employer ?y }
[]
magazine
Q1043104
SYSTEM
Charlie Hebdo
Q1043104
(Q2090350,P108,c(Q41298))
action filter_type
action find
entity Q2090350
relation P108
type Q41298
[ANSWER]
['Q2090350', 'P108', {'concept': 'Q41298'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q41298 . resource:Q2090350 property:P108 ?y }
Charlie Hebdo
Charlie Hebdo
action filter_type
action find
entity Ali Dilem
relation employer
type magazine
['Ali Dilem', 'employer', {'concept': 'magazine'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:magazine . resource:Ali_Dilem property:employer ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P793
Q3839081 Q180684
USER
How many disasters and conflicts are that magazine associated with ?
(Q1043104,P793,c(Q3839081)) (Q1043104,P793,c(Q180684)) (Q1043104,P793,c(Q3839081)) (Q1043104,P793,c(Q180684))
action count
action union
action filter_type
action find
entity Q1043104
relation P793
type Q3839081
action filter_type
action find
entity Q1043104
relation P793
type Q180684
['Q1043104', 'P793', {'concept': 'Q3839081'}] ['Q1043104', 'P793', {'concept': 'Q180684'}] ['Q1043104', 'P793', {'concept': 'Q3839081'}] ['Q1043104', 'P793', {'concept': 'Q180684'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { resource:Q1043104 property:P793 ?n . ?n rdf:type ontology:Q3839081 } UNION { resource:Q1043104 property:P793 ?n . ?n rdf:type ontology:Q180684 } }
action count
action union
action filter_type
action find
entity Charlie Hebdo
relation significant event
type disaster
action filter_type
action find
entity Charlie Hebdo
relation significant event
type conflict
['Charlie Hebdo', 'significant event', {'concept': 'disaster'}] ['Charlie Hebdo', 'significant event', {'concept': 'conflict'}] ['Charlie Hebdo', 'significant event', {'concept': 'disaster'}] ['Charlie Hebdo', 'significant event', {'concept': 'conflict'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { resource:Charlie_Hebdo property:significant_event ?n . ?n rdf:type ontology:disaster } UNION { resource:Charlie_Hebdo property:significant_event ?n . ?n rdf:type ontology:conflict } }
[]
disaster conflict
SYSTEM
1 disasters and 1 conflicts
Q2406205 Q327541
(Q1043104,P793,c(Q3839081)) (Q1043104,P793,c(Q180684)) (Q1043104,P793,c(Q3839081)) (Q1043104,P793,c(Q180684))
action count
action union
action filter_type
action find
entity Q1043104
relation P793
type Q3839081
action filter_type
action find
entity Q1043104
relation P793
type Q180684
[ANSWER]
['Q1043104', 'P793', {'concept': 'Q3839081'}] ['Q1043104', 'P793', {'concept': 'Q180684'}] ['Q1043104', 'P793', {'concept': 'Q3839081'}] ['Q1043104', 'P793', {'concept': 'Q180684'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { resource:Q1043104 property:P793 ?n . ?n rdf:type ontology:Q3839081 } UNION { resource:Q1043104 property:P793 ?n . ?n rdf:type ontology:Q180684 } }
shootout arson
1 disasters and 1 conflicts
action count
action union
action filter_type
action find
entity Charlie Hebdo
relation significant event
type disaster
action filter_type
action find
entity Charlie Hebdo
relation significant event
type conflict
['Charlie Hebdo', 'significant event', {'concept': 'disaster'}] ['Charlie Hebdo', 'significant event', {'concept': 'conflict'}] ['Charlie Hebdo', 'significant event', {'concept': 'disaster'}] ['Charlie Hebdo', 'significant event', {'concept': 'conflict'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { resource:Charlie_Hebdo property:significant_event ?n . ?n rdf:type ontology:disaster } UNION { resource:Charlie_Hebdo property:significant_event ?n . ?n rdf:type ontology:conflict } }
[]