Simple Question (Direct)
Simple Question
Q15983271
P136
Q151885
USER
Which concept is the genre for Rizwan-ul-Haq ?
(Q15983271,P136,c(Q151885))
action filter_type
action find
entity Q15983271
relation P136
type Q151885
['Q15983271', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?y WHERE { resource:Q15983271 property:P136 ?y . ?y rdf:type ontology:Q151885 }
Rizwan-ul-Haq
action filter_type
action find
entity Rizwan-ul-Haq
relation genre
type concept
['Rizwan-ul-Haq', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?y WHERE { resource:Rizwan-ul-Haq property:genre ?y . ?y rdf:type ontology:concept }
[]
concept
Q11399
SYSTEM
rock music
Q11399
(Q15983271,P136,c(Q151885))
action filter_type
action find
entity Q15983271
relation P136
type Q151885
It [ANSWER] is the genre for Rizwan-ul-Haq
['Q15983271', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?y WHERE { resource:Q15983271 property:P136 ?y . ?y rdf:type ontology:Q151885 }
rock music
It rock music is the genre for Rizwan-ul-Haq
rock music
action filter_type
action find
entity Rizwan-ul-Haq
relation genre
type concept
['Rizwan-ul-Haq', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?y WHERE { resource:Rizwan-ul-Haq property:genre ?y . ?y rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15983271
P264
Q334453
USER
Who sponsored the recoding of Rizwan-ul-Haq ?
(Q15983271,P264,c(Q334453))
action filter_type
action find
entity Q15983271
relation P264
type Q334453
['Q15983271', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?g WHERE { resource:Q15983271 property:P264 ?g . ?g rdf:type ontology:Q334453 }
Rizwan-ul-Haq
action filter_type
action find
entity Rizwan-ul-Haq
relation record label
type division
['Rizwan-ul-Haq', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?g WHERE { resource:Rizwan-ul-Haq property:record_label ?g . ?g rdf:type ontology:division }
[]
division
Q3629023
SYSTEM
EMI Records
Q3629023
(Q15983271,P264,c(Q334453))
action filter_type
action find
entity Q15983271
relation P264
type Q334453
[ANSWER] sponsored the recoding of Rizwan-ul-Haq
['Q15983271', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?g WHERE { resource:Q15983271 property:P264 ?g . ?g rdf:type ontology:Q334453 }
EMI Records
EMI Records sponsored the recoding of Rizwan-ul-Haq
EMI Records
action filter_type
action find
entity Rizwan-ul-Haq
relation record label
type division
['Rizwan-ul-Haq', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?g WHERE { resource:Rizwan-ul-Haq property:record_label ?g . ?g rdf:type ontology:division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15983271
P106
Q12737077
USER
What are the job of that person ?
(Q3629023,P106,c(Q12737077))
action filter_type
action find
entity Q15983271
relation P106
type Q12737077
['Q3629023', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q15983271 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Rizwan-ul-Haq
action filter_type
action find
entity Rizwan-ul-Haq
relation occupation
type occupation
['EMI Records', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Rizwan-ul-Haq property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q36834 Q81096 Q183945
SYSTEM
composer, engineer, record producer
Q81096 Q183945 Q36834 Q486748
(Q3629023,P106,c(Q12737077))
action filter_type
action find
entity Q15983271
relation P106
type Q12737077
The job of that person are the [ANSWERS]
['Q3629023', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q15983271 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
engineer record producer composer pianist
The job of that person are the composer, engineer and record producer
composer engineer record producer
action filter_type
action find
entity Rizwan-ul-Haq
relation occupation
type occupation
['EMI Records', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Rizwan-ul-Haq property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7982832 Q15983271
P27
Q15617994
USER
Which administrative territories are Rizwan-ul-Haq or Wendy Wood an inhabitant of ?
OR((Q15983271,P27,c(Q15617994)), (Q7982832,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15983271
relation P27
action find
entity Q7982832
relation P27
type Q15617994
{'OR': [['Q15983271', 'P27', {'concept': 'Q15617994'}], ['Q7982832', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q15983271 property:P27 ?s } UNION { resource:Q7982832 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Wendy Wood Rizwan-ul-Haq
action filter_type
action union
action find
entity Rizwan-ul-Haq
relation country of citizenship
action find
entity Wendy Wood
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rizwan-ul-Haq', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wendy Wood', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Rizwan-ul-Haq property:country_of_citizenship ?s } UNION { resource:Wendy_Wood property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843 Q258
SYSTEM
Pakistan, South Africa
Q843 Q258
OR((Q15983271,P27,c(Q15617994)), (Q7982832,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15983271
relation P27
action find
entity Q7982832
relation P27
type Q15617994
[ANSWERS] are Rizwan-ul-Haq or Wendy Wood an inhabitant of
{'OR': [['Q15983271', 'P27', {'concept': 'Q15617994'}], ['Q7982832', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q15983271 property:P27 ?s } UNION { resource:Q7982832 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Pakistan South Africa
Pakistan and South Africa are Rizwan-ul-Haq or Wendy Wood an inhabitant of
Pakistan South Africa
action filter_type
action union
action find
entity Rizwan-ul-Haq
relation country of citizenship
action find
entity Wendy Wood
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rizwan-ul-Haq', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wendy Wood', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Rizwan-ul-Haq property:country_of_citizenship ?s } UNION { resource:Wendy_Wood property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q43050
P530
Q15617994
USER
Do Morterone have diplomatic associations with those ones ?
(Q43050,P530,Q843) (Q43050,P530,Q258)
action is_in
entity prev_answer
action find
entity Q43050
relation P530
['Q43050', 'P530', 'Q843'] ['Q43050', 'P530', 'Q258']
ASK WHERE { resource:Q43050 property:P530 ?v . VALUES ( ?v ) { ( resource:Q843 ) ( resource:Q258 ) } }
Morterone
action is_in
entity prev_answer
action find
entity Morterone
relation diplomatic relation
['Morterone', 'diplomatic relation', 'Pakistan'] ['Morterone', 'diplomatic relation', 'South Africa']
ASK WHERE { resource:Morterone property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Pakistan ) ( resource:South_Africa ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q43050,P530,Q843) (Q43050,P530,Q258)
action is_in
entity prev_answer
action find
entity Q43050
relation P530
[ANSWER]
['Q43050', 'P530', 'Q843'] ['Q43050', 'P530', 'Q258']
ASK WHERE { resource:Q43050 property:P530 ?v . VALUES ( ?v ) { ( resource:Q843 ) ( resource:Q258 ) } }
No
action is_in
entity prev_answer
action find
entity Morterone
relation diplomatic relation
['Morterone', 'diplomatic relation', 'Pakistan'] ['Morterone', 'diplomatic relation', 'South Africa']
ASK WHERE { resource:Morterone property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Pakistan ) ( resource:South_Africa ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36834
P425
Q12737077
USER
Which occupation does composer belong to ?
(c(Q12737077),P425,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q36834']
SELECT DISTINCT ?k WHERE { ?k property:P425 resource:Q36834 . ?k rdf:type ontology:Q12737077 }
composer
action filter_type
action find_reverse
entity composer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'composer']
SELECT DISTINCT ?k WHERE { ?k property:field_of_this_occupation resource:composer . ?k rdf:type ontology:occupation }
[]
occupation
Q2936875
SYSTEM
Cantore al liuto
Q2936875
(c(Q12737077),P425,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P425
type Q12737077
Composer belongs to [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q36834']
SELECT DISTINCT ?k WHERE { ?k property:P425 resource:Q36834 . ?k rdf:type ontology:Q12737077 }
Cantore al liuto
Composer belongs to Cantore al liuto
Cantore al liuto
action filter_type
action find_reverse
entity composer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'composer']
SELECT DISTINCT ?k WHERE { ?k property:field_of_this_occupation resource:composer . ?k rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36834
P39
Q502895
USER
Who was responsible for occupying the position of composer ?
(c(Q502895),P39,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q36834']
SELECT DISTINCT ?n WHERE { ?n property:P39 resource:Q36834 . ?n rdf:type ontology:Q502895 }
composer
action filter_type
action find_reverse
entity composer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'composer']
SELECT DISTINCT ?n WHERE { ?n property:position_held resource:composer . ?n rdf:type ontology:common_name }
[]
common name
Q3193394
SYSTEM
Karl Hajos
Q3193394
(c(Q502895),P39,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of composer
[{'concept': 'Q502895'}, 'P39', 'Q36834']
SELECT DISTINCT ?n WHERE { ?n property:P39 resource:Q36834 . ?n rdf:type ontology:Q502895 }
Karl Hajos
Karl Hajos was responsible for occupying the position of composer
Karl Hajos
action filter_type
action find_reverse
entity composer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'composer']
SELECT DISTINCT ?n WHERE { ?n property:position_held resource:composer . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3193394
P20
Q56061
USER
Where did that person die ?
(Q3193394,P20,c(Q56061))
action filter_type
action find
entity Q3193394
relation P20
type Q56061
['Q3193394', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q3193394 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Karl Hajos
action filter_type
action find
entity Karl Hajos
relation place of death
type administrative territorial entity
['Karl Hajos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Karl_Hajos property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q3193394,P20,c(Q56061))
action filter_type
action find
entity Q3193394
relation P20
type Q56061
That person died in [ANSWER]
['Q3193394', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q3193394 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Los Angeles
That person died in Los Angeles
Los Angeles
action filter_type
action find
entity Karl Hajos
relation place of death
type administrative territorial entity
['Karl Hajos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Karl_Hajos property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3193394
P1411
Q4220917
USER
Which film award was Karl Hajos nominated for ?
(Q3193394,P1411,c(Q4220917))
action filter_type
action find
entity Q3193394
relation P1411
type Q4220917
['Q3193394', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?v WHERE { resource:Q3193394 property:P1411 ?v . ?v rdf:type ontology:Q4220917 }
Karl Hajos
action filter_type
action find
entity Karl Hajos
relation nominated for
type film award
['Karl Hajos', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?v WHERE { resource:Karl_Hajos property:nominated_for ?v . ?v rdf:type ontology:film_award }
[]
film award
Q22752868
SYSTEM
Academy Award for Best Original Dramatic or Comedy Score
Q22752868
(Q3193394,P1411,c(Q4220917))
action filter_type
action find
entity Q3193394
relation P1411
type Q4220917
Karl Hajos was nominated for [ANSWER]
['Q3193394', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?v WHERE { resource:Q3193394 property:P1411 ?v . ?v rdf:type ontology:Q4220917 }
Academy Award for Best Original Dramatic or Comedy Score
Karl Hajos was nominated for Academy Award for Best Original Dramatic or Comedy Score
Academy Award for Best Original Dramatic or Comedy Score
action filter_type
action find
entity Karl Hajos
relation nominated for
type film award
['Karl Hajos', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?v WHERE { resource:Karl_Hajos property:nominated_for ?v . ?v rdf:type ontology:film_award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3193394
P86
Q838948
USER
Which works of art have that person as the melodist ?
(c(Q838948),P86,Q22752868)
action filter_type
action find_reverse
entity Q3193394
relation P86
type Q838948
[{'concept': 'Q838948'}, 'P86', 'Q22752868']
SELECT DISTINCT ?m WHERE { ?m property:P86 resource:Q3193394 . ?m rdf:type ontology:Q838948 }
Karl Hajos
action filter_type
action find_reverse
entity Karl Hajos
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Academy Award for Best Original Dramatic or Comedy Score']
SELECT DISTINCT ?m WHERE { ?m property:composer resource:Karl_Hajos . ?m rdf:type ontology:work_of_art }
[]
work of art
Q577754 Q3523233 Q1344526
SYSTEM
Morocco, The Virginian, Dishonored
Q3233816 Q742569 Q933339 Q2413877 Q577754 Q5464050 Q3523233 Q1531417 Q3079980 Q6751776 Q8000598 Q15231297 Q3569755 Q1344526 Q7756852
(c(Q838948),P86,Q22752868)
action filter_type
action find_reverse
entity Q3193394
relation P86
type Q838948
[ANSWERS] have that person as the melodist
[{'concept': 'Q838948'}, 'P86', 'Q22752868']
SELECT DISTINCT ?m WHERE { ?m property:P86 resource:Q3193394 . ?m rdf:type ontology:Q838948 }
Beggars of Life Thunderbolt Werewolf of London The Right to Love Morocco Fog Island The Virginian The Mask of Diijon Four Frightened People Manslaughter Wild Country The Wolf of Wall Street Woman Trap Dishonored The Phantom of 42nd Street
Morocco, The Virginian and Dishonored have that person as the melodist
Morocco The Virginian Dishonored
action filter_type
action find_reverse
entity Karl Hajos
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Academy Award for Best Original Dramatic or Comedy Score']
SELECT DISTINCT ?m WHERE { ?m property:composer resource:Karl_Hajos . ?m rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q838948 Q386724
USER
How many works were described in approximately 1 work of art ?
(c(Q386724),P1445,c(Q838948))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 1
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?l property:P1445 ?c . ?c rdf:type ontology:Q838948 . ?l rdf:type ontology:Q386724 } GROUP BY ?l } . FILTER ( ?g = 1 ) }
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 1
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?l property:fictional_universe_described_in ?c . ?c rdf:type ontology:work_of_art . ?l rdf:type ontology:work } GROUP BY ?l } . FILTER ( ?g = 1 ) }
[]
work of art work
SYSTEM
4
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 1
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?l property:P1445 ?c . ?c rdf:type ontology:Q838948 . ?l rdf:type ontology:Q386724 } GROUP BY ?l } . FILTER ( ?g = 1 ) }
Shrek Aladdin media franchise Stargate The Walking Dead
4
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 1
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?l property:fictional_universe_described_in ?c . ?c rdf:type ontology:work_of_art . ?l rdf:type ontology:work } GROUP BY ?l } . FILTER ( ?g = 1 ) }
[]