Simple Question (Direct)
Simple Question
Q15981908
P641
Q349
USER
What was the sport that Mohammad Hosseinpour was a part of ?
(Q15981908,P641,c(Q349))
action filter_type
action find
entity Q15981908
relation P641
type Q349
['Q15981908', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q15981908 property:P641 ?o . ?o rdf:type ontology:Q349 }
Mohammad Hosseinpour
action filter_type
action find
entity Mohammad Hosseinpour
relation sport
type sport
['Mohammad Hosseinpour', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Mohammad_Hosseinpour property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q15981908,P641,c(Q349))
action filter_type
action find
entity Q15981908
relation P641
type Q349
The sport that Mohammad Hosseinpour was a part of was h [ANSWER]
['Q15981908', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q15981908 property:P641 ?o . ?o rdf:type ontology:Q349 }
association football
The sport that Mohammad Hosseinpour was a part of was h association football
association football
action filter_type
action find
entity Mohammad Hosseinpour
relation sport
type sport
['Mohammad Hosseinpour', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Mohammad_Hosseinpour property:sport ?o . ?o rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15981908
P19
Q15617994
USER
Which administrative territory was Mohammad Hosseinpour born in ?
(Q15981908,P19,c(Q15617994))
action filter_type
action find
entity Q15981908
relation P19
type Q15617994
['Q15981908', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q15981908 property:P19 ?n . ?n rdf:type ontology:Q15617994 }
Mohammad Hosseinpour
action filter_type
action find
entity Mohammad Hosseinpour
relation place of birth
type designation for an administrative territorial entity
['Mohammad Hosseinpour', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Mohammad_Hosseinpour property:place_of_birth ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q15981908,P19,c(Q15617994))
action filter_type
action find
entity Q15981908
relation P19
type Q15617994
Mohammad Hosseinpour was born in [ANSWER]
['Q15981908', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q15981908 property:P19 ?n . ?n rdf:type ontology:Q15617994 }
Iran
Mohammad Hosseinpour was born in Iran
Iran
action filter_type
action find
entity Mohammad Hosseinpour
relation place of birth
type designation for an administrative territorial entity
['Mohammad Hosseinpour', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Mohammad_Hosseinpour property:place_of_birth ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15981908
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q794,P27,c(Q15617994))
action filter_type
action find
entity Q15981908
relation P27
type Q15617994
['Q794', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q15981908 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Mohammad Hosseinpour
action filter_type
action find
entity Mohammad Hosseinpour
relation country of citizenship
type designation for an administrative territorial entity
['Iran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mohammad_Hosseinpour property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q794,P27,c(Q15617994))
action filter_type
action find
entity Q15981908
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q794', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q15981908 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Iran
The Iran is that person a civilian of
Iran
action filter_type
action find
entity Mohammad Hosseinpour
relation country of citizenship
type designation for an administrative territorial entity
['Iran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mohammad_Hosseinpour property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15981908
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q794,P106,c(Q12737077))
action filter_type
action find
entity Q15981908
relation P106
type Q12737077
['Q794', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q15981908 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Mohammad Hosseinpour
action filter_type
action find
entity Mohammad Hosseinpour
relation occupation
type occupation
['Iran', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Mohammad_Hosseinpour property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q794,P106,c(Q12737077))
action filter_type
action find
entity Q15981908
relation P106
type Q12737077
Player [ANSWER] is the profession of that person
['Q794', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q15981908 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of that person
association football player
action filter_type
action find
entity Mohammad Hosseinpour
relation occupation
type occupation
['Iran', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Mohammad_Hosseinpour property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q12737077 Q2342494 Q43229
USER
How many occupations do greater number of collectables or organizations belong to than that occupation ?
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q2342494
type Q43229
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?a > ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:P101 resource:Q937857 . { ?v rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } } } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } UNION { ?y property:P101 ?e . ?y rdf:type ontology:Q43229 . ?e rdf:type ontology:Q12737077 } } GROUP BY ?e } }
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type collectable
type organization
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?a > ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:field_of_work resource:association_football_player . { ?v rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:organization ) } } } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:field_of_work ?e . ?e rdf:type ontology:occupation . ?y rdf:type ontology:collectable } UNION { ?y property:field_of_work ?e . ?y rdf:type ontology:organization . ?e rdf:type ontology:occupation } } GROUP BY ?e } }
[]
occupation collectable organization
SYSTEM
2
Q211423 Q15954519
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q937857
relation P101
type Q2342494
type Q43229
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?a > ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:P101 resource:Q937857 . { ?v rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } } } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } UNION { ?y property:P101 ?e . ?y rdf:type ontology:Q43229 . ?e rdf:type ontology:Q12737077 } } GROUP BY ?e } }
goldsmith alchemist
2
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action count
action filter_multi_types
action find_reverse
entity association football player
relation field of work
type collectable
type organization
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?a > ?o ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:field_of_work resource:association_football_player . { ?v rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:organization ) } } } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:field_of_work ?e . ?e rdf:type ontology:occupation . ?y rdf:type ontology:collectable } UNION { ?y property:field_of_work ?e . ?y rdf:type ontology:organization . ?e rdf:type ontology:occupation } } GROUP BY ?e } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P276
Q198
USER
Which war is located at Iran ?
(c(Q198),P276,Q794)
action filter_type
action find_reverse
entity Q794
relation P276
type Q198
[{'concept': 'Q198'}, 'P276', 'Q794']
SELECT DISTINCT ?e WHERE { ?e property:P276 resource:Q794 . ?e rdf:type ontology:Q198 }
Iran
action filter_type
action find_reverse
entity Iran
relation location
type war
[{'concept': 'war'}, 'location', 'Iran']
SELECT DISTINCT ?e WHERE { ?e property:location resource:Iran . ?e rdf:type ontology:war }
[]
war
Q79911
SYSTEM
Russian Civil War
Q79911
(c(Q198),P276,Q794)
action filter_type
action find_reverse
entity Q794
relation P276
type Q198
[ANSWER] is located at Iran
[{'concept': 'Q198'}, 'P276', 'Q794']
SELECT DISTINCT ?e WHERE { ?e property:P276 resource:Q794 . ?e rdf:type ontology:Q198 }
Russian Civil War
Russian Civil War is located at Iran
Russian Civil War
action filter_type
action find_reverse
entity Iran
relation location
type war
[{'concept': 'war'}, 'location', 'Iran']
SELECT DISTINCT ?e WHERE { ?e property:location resource:Iran . ?e rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q79911
P710
Q7275
USER
Which state was a participant of that war ?
(Q79911,P710,c(Q7275))
action filter_type
action find
entity Q79911
relation P710
type Q7275
['Q79911', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { resource:Q79911 property:P710 ?e . ?e rdf:type ontology:Q7275 }
Russian Civil War
action filter_type
action find
entity Russian Civil War
relation participant
type state
['Russian Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { resource:Russian_Civil_War property:participant ?e . ?e rdf:type ontology:state }
[]
state
Q2184
SYSTEM
Russian Soviet Federative Socialist Republic
Q2184
(Q79911,P710,c(Q7275))
action filter_type
action find
entity Q79911
relation P710
type Q7275
[ANSWER] was a participant of that war
['Q79911', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { resource:Q79911 property:P710 ?e . ?e rdf:type ontology:Q7275 }
Russian Soviet Federative Socialist Republic
Russian Soviet Federative Socialist Republic was a participant of that war
Russian Soviet Federative Socialist Republic
action filter_type
action find
entity Russian Civil War
relation participant
type state
['Russian Civil War', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { resource:Russian_Civil_War property:participant ?e . ?e rdf:type ontology:state }
[]