Simple Question (Direct)
Simple Question
Q3032768
P106
Q12737077
USER
Which occupations have Djamel Amani as his/her 's career ?
(Q3032768,P106,c(Q12737077))
action filter_type
action find
entity Q3032768
relation P106
type Q12737077
['Q3032768', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3032768 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Djamel Amani
action filter_type
action find
entity Djamel Amani
relation occupation
type occupation
['Djamel Amani', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Djamel_Amani property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q3032768,P106,c(Q12737077))
action filter_type
action find
entity Q3032768
relation P106
type Q12737077
As [ANSWERS] have Djamel Amani as his/her 's career
['Q3032768', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3032768 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
association football manager association football player
As association football manager and association football player have Djamel Amani as his/her 's career
association football manager association football player
action filter_type
action find
entity Djamel Amani
relation occupation
type occupation
['Djamel Amani', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Djamel_Amani property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3032768
P641
Q349
USER
What did that person participate in ?
(Q628099,P641,c(Q349)) (Q937857,P641,c(Q349))
action filter_type
action find
entity Q3032768
relation P641
type Q349
['Q628099', 'P641', {'concept': 'Q349'}] ['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q3032768 property:P641 ?z . ?z rdf:type ontology:Q349 }
Djamel Amani
action filter_type
action find
entity Djamel Amani
relation sport
type sport
['association football manager', 'sport', {'concept': 'sport'}] ['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Djamel_Amani property:sport ?z . ?z rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q628099,P641,c(Q349)) (Q937857,P641,c(Q349))
action filter_type
action find
entity Q3032768
relation P641
type Q349
That person participated in [ANSWER]
['Q628099', 'P641', {'concept': 'Q349'}] ['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q3032768 property:P641 ?z . ?z rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Djamel Amani
relation sport
type sport
['association football manager', 'sport', {'concept': 'sport'}] ['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Djamel_Amani property:sport ?z . ?z rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3032768
P54
Q1194951
USER
What is that person a member of ?
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q3032768
relation P54
type Q1194951
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q3032768 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Djamel Amani
action filter_type
action find
entity Djamel Amani
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Djamel_Amani property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
national sports team
Q181903
SYSTEM
Algeria national football team
Q181903
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q3032768
relation P54
type Q1194951
That person a member of is the [ANSWER]
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q3032768 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Algeria national football team
That person a member of is the Algeria national football team
Algeria national football team
action filter_type
action find
entity Djamel Amani
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Djamel_Amani property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3032768
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q181903,P27,c(Q15617994))
action filter_type
action find
entity Q3032768
relation P27
type Q15617994
['Q181903', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q3032768 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Djamel Amani
action filter_type
action find
entity Djamel Amani
relation country of citizenship
type designation for an administrative territorial entity
['Algeria national football team', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Djamel_Amani property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262
SYSTEM
Algeria
Q262
(Q181903,P27,c(Q15617994))
action filter_type
action find
entity Q3032768
relation P27
type Q15617994
Are [ANSWER] is the native country of that person
['Q181903', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q3032768 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Algeria
Are Algeria is the native country of that person
Algeria
action filter_type
action find
entity Djamel Amani
relation country of citizenship
type designation for an administrative territorial entity
['Algeria national football team', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Djamel_Amani property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3032768
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q262,P19,c(Q56061))
action filter_type
action find
entity Q3032768
relation P19
type Q56061
['Q262', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q3032768 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Djamel Amani
action filter_type
action find
entity Djamel Amani
relation place of birth
type administrative territorial entity
['Algeria', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Djamel_Amani property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q216990
SYSTEM
Blida
Q216990
(Q262,P19,c(Q56061))
action filter_type
action find
entity Q3032768
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q262', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q3032768 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Blida
Blida is the place of birth of that person
Blida
action filter_type
action find
entity Djamel Amani
relation place of birth
type administrative territorial entity
['Algeria', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Djamel_Amani property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q262
P172
Q502895
USER
Which person has Algeria as his/her race ?
(c(Q502895),P172,Q262)
action filter_type
action find_reverse
entity Q262
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q262']
SELECT DISTINCT ?h WHERE { ?h property:P172 resource:Q262 . ?h 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 ?h WHERE { ?h property:ethnic_group resource:Algeria . ?h 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 Algeria as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q262']
SELECT DISTINCT ?h WHERE { ?h property:P172 resource:Q262 . ?h rdf:type ontology:Q502895 }
Ali Dilem
Ali Dilem has Algeria as his/her race
Ali Dilem
action filter_type
action find_reverse
entity Algeria
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Algeria']
SELECT DISTINCT ?h WHERE { ?h property:ethnic_group resource:Algeria . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q262
P530
Q15617994
USER
Which administrative territories have tactful political relations with Algeria ?
(c(Q15617994),P530,Q262)
action filter_type
action find_reverse
entity Q262
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q262']
SELECT DISTINCT ?u WHERE { ?u property:P530 resource:Q262 . ?u rdf:type ontology:Q15617994 }
Algeria
action filter_type
action find_reverse
entity Algeria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Algeria']
SELECT DISTINCT ?u WHERE { ?u property:diplomatic_relation resource:Algeria . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184 Q230 Q114
SYSTEM
Belarus, Georgia, Kenya
Q184 Q230 Q114
(c(Q15617994),P530,Q262)
action filter_type
action find_reverse
entity Q262
relation P530
type Q15617994
[ANSWERS] have tactful political relations with Algeria
[{'concept': 'Q15617994'}, 'P530', 'Q262']
SELECT DISTINCT ?u WHERE { ?u property:P530 resource:Q262 . ?u rdf:type ontology:Q15617994 }
Belarus Georgia Kenya
Belarus, Georgia and Kenya have tactful political relations with Algeria
Belarus Georgia Kenya
action filter_type
action find_reverse
entity Algeria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Algeria']
SELECT DISTINCT ?u WHERE { ?u property:diplomatic_relation resource:Algeria . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q184
P463
Q43229
USER
What organizations were that administrative territory a member of ?
(Q184,P463,c(Q43229))
action filter_type
action find
entity Q184
relation P463
type Q43229
['Q184', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { resource:Q184 property:P463 ?c . ?c rdf:type ontology:Q43229 }
Belarus
action filter_type
action find
entity Belarus
relation member of
type organization
['Belarus', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { resource:Belarus property:member_of ?c . ?c rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q184
SYSTEM
Did you mean Belarus ?
Q184 Q230 Q114
(Q184,P463,c(Q43229)) (Q230,P463,c(Q43229)) (Q114,P463,c(Q43229))
[ANSWER]
['Q184', 'P463', {'concept': 'Q43229'}] ['Q230', 'P463', {'concept': 'Q43229'}] ['Q114', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { resource:Q184 property:P463 ?c . ?c rdf:type ontology:Q43229 }
Belarus Georgia Kenya
Did you mean Belarus ?
Belarus
['Belarus', 'member of', {'concept': 'organization'}] ['Georgia', 'member of', {'concept': 'organization'}] ['Kenya', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { resource:Belarus property:member_of ?c . ?c rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(Q184,P463,c(Q43229))
['Q184', 'P463', {'concept': 'Q43229'}]
['Belarus', 'member of', {'concept': 'organization'}]
[]
Q318693 Q191384 Q7779
SYSTEM
Collective Security Treaty Organisation, International Bank for Reconstruction and Development, Commonwealth of Independent States
Q318693 Q191384 Q899770 Q208019 Q7779 Q656801
(Q184,P463,c(Q43229))
action filter_type
action find
entity Q184
relation P463
type Q43229
[ANSWERS]
['Q184', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { resource:Q184 property:P463 ?c . ?c rdf:type ontology:Q43229 }
Collective Security Treaty Organisation International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Eastern Partnership Commonwealth of Independent States International Finance Corporation
What organizations were that administrative territory a member of
Collective Security Treaty Organisation International Bank for Reconstruction and Development Commonwealth of Independent States
action filter_type
action find
entity Belarus
relation member of
type organization
['Belarus', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { resource:Belarus property:member_of ?c . ?c rdf:type ontology:organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P123
Q43229 Q2342494 Q21114848
USER
Which organizations published max number of collectables or magazine genres ?
(c(Q2342494)|c(Q21114848),P123,c(Q43229))
action argmax
action union
action find_reverse_tuple_counts
relation P123
type Q43229
type Q2342494
action find_reverse_tuple_counts
relation P123
type Q43229
type Q21114848
[[{'concept': 'Q2342494'}, {'concept': 'Q21114848'}], 'P123', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?q WHERE { { ?g property:P123 ?q . ?g rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q43229 } UNION { ?g property:P123 ?q . ?q rdf:type ontology:Q43229 . ?g rdf:type ontology:Q21114848 } } GROUP BY ?q } . FILTER ( ?f = ?t ) . { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?d WHERE { { ?h property:P123 ?d . ?d rdf:type ontology:Q43229 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P123 ?d . ?d rdf:type ontology:Q43229 . ?h rdf:type ontology:Q21114848 } } GROUP BY ?d } } }
action argmax
action union
action find_reverse_tuple_counts
relation publisher
type organization
type collectable
action find_reverse_tuple_counts
relation publisher
type organization
type magazine genre
[[{'concept': 'collectable'}, {'concept': 'magazine genre'}], 'publisher', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?q WHERE { { ?g property:publisher ?q . ?g rdf:type ontology:collectable . ?q rdf:type ontology:organization } UNION { ?g property:publisher ?q . ?q rdf:type ontology:organization . ?g rdf:type ontology:magazine_genre } } GROUP BY ?q } . FILTER ( ?f = ?t ) . { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?d WHERE { { ?h property:publisher ?d . ?d rdf:type ontology:organization . ?h rdf:type ontology:collectable } UNION { ?h property:publisher ?d . ?d rdf:type ontology:organization . ?h rdf:type ontology:magazine_genre } } GROUP BY ?d } } }
[]
organization collectable magazine genre
Q2562301
SYSTEM
Del Rey Books
Q2562301
(c(Q2342494)|c(Q21114848),P123,c(Q43229))
action argmax
action union
action find_reverse_tuple_counts
relation P123
type Q43229
type Q2342494
action find_reverse_tuple_counts
relation P123
type Q43229
type Q21114848
[ANSWER] published max number of collectables or magazine genres
[[{'concept': 'Q2342494'}, {'concept': 'Q21114848'}], 'P123', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?q WHERE { { ?g property:P123 ?q . ?g rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q43229 } UNION { ?g property:P123 ?q . ?q rdf:type ontology:Q43229 . ?g rdf:type ontology:Q21114848 } } GROUP BY ?q } . FILTER ( ?f = ?t ) . { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?d WHERE { { ?h property:P123 ?d . ?d rdf:type ontology:Q43229 . ?h rdf:type ontology:Q2342494 } UNION { ?h property:P123 ?d . ?d rdf:type ontology:Q43229 . ?h rdf:type ontology:Q21114848 } } GROUP BY ?d } } }
Del Rey Books
Del Rey Books published max number of collectables or magazine genres
Del Rey Books
action argmax
action union
action find_reverse_tuple_counts
relation publisher
type organization
type collectable
action find_reverse_tuple_counts
relation publisher
type organization
type magazine genre
[[{'concept': 'collectable'}, {'concept': 'magazine genre'}], 'publisher', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?q WHERE { { ?g property:publisher ?q . ?g rdf:type ontology:collectable . ?q rdf:type ontology:organization } UNION { ?g property:publisher ?q . ?q rdf:type ontology:organization . ?g rdf:type ontology:magazine_genre } } GROUP BY ?q } . FILTER ( ?f = ?t ) . { SELECT DISTINCT ( MAX ( ?a ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) ?d WHERE { { ?h property:publisher ?d . ?d rdf:type ontology:organization . ?h rdf:type ontology:collectable } UNION { ?h property:publisher ?d . ?d rdf:type ontology:organization . ?h rdf:type ontology:magazine_genre } } GROUP BY ?d } } }
[]