Simple Question (Direct)
Simple Question
Q2659156
P106
Q12737077
USER
What is the job of Charles Exbrayat ?
(Q2659156,P106,c(Q12737077))
action filter_type
action find
entity Q2659156
relation P106
type Q12737077
['Q2659156', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q2659156 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Charles Exbrayat
action filter_type
action find
entity Charles Exbrayat
relation occupation
type occupation
['Charles Exbrayat', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Charles_Exbrayat property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q2659156,P106,c(Q12737077))
action filter_type
action find
entity Q2659156
relation P106
type Q12737077
The job of Charles Exbrayat is a [ANSWER]
['Q2659156', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q2659156 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
writer
The job of Charles Exbrayat is a writer
writer
action filter_type
action find
entity Charles Exbrayat
relation occupation
type occupation
['Charles Exbrayat', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Charles_Exbrayat property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2659156
P58
Q838948
USER
Which works of art are Charles Exbrayat a screenwriter of ?
(c(Q838948),P58,Q2659156)
action filter_type
action find_reverse
entity Q2659156
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q2659156']
SELECT DISTINCT ?s WHERE { ?s property:P58 resource:Q2659156 . ?s rdf:type ontology:Q838948 }
Charles Exbrayat
action filter_type
action find_reverse
entity Charles Exbrayat
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Charles Exbrayat']
SELECT DISTINCT ?s WHERE { ?s property:screenwriter resource:Charles_Exbrayat . ?s rdf:type ontology:work_of_art }
[]
work of art
Q3203629 Q16038998 Q3204124
SYSTEM
L'Homme de Londres, The Lovers of Marianne, Fugitive from Montreal
Q16632282 Q16038998 Q3204124 Q3203629
(c(Q838948),P58,Q2659156)
action filter_type
action find_reverse
entity Q2659156
relation P58
type Q838948
[ANSWERS] are Charles Exbrayat a screenwriter of
[{'concept': 'Q838948'}, 'P58', 'Q2659156']
SELECT DISTINCT ?s WHERE { ?s property:P58 resource:Q2659156 . ?s rdf:type ontology:Q838948 }
Sending of Flowers The Lovers of Marianne Fugitive from Montreal L'Homme de Londres
L'Homme de Londres, The Lovers of Marianne and Fugitive from Montreal are Charles Exbrayat a screenwriter of
L'Homme de Londres The Lovers of Marianne Fugitive from Montreal
action filter_type
action find_reverse
entity Charles Exbrayat
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Charles Exbrayat']
SELECT DISTINCT ?s WHERE { ?s property:screenwriter resource:Charles_Exbrayat . ?s rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2659156
P21
Q290
USER
What is the sex of Charles Exbrayat ?
(Q2659156,P21,c(Q290))
action filter_type
action find
entity Q2659156
relation P21
type Q290
['Q2659156', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q2659156 property:P21 ?h . ?h rdf:type ontology:Q290 }
Charles Exbrayat
action filter_type
action find
entity Charles Exbrayat
relation gender
type sex
['Charles Exbrayat', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Charles_Exbrayat property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2659156,P21,c(Q290))
action filter_type
action find
entity Q2659156
relation P21
type Q290
The sex of Charles Exbrayat is the [ANSWER]
['Q2659156', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q2659156 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
The sex of Charles Exbrayat is the male
male
action filter_type
action find
entity Charles Exbrayat
relation gender
type sex
['Charles Exbrayat', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Charles_Exbrayat property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6221158
Q290
USER
And what about John Baxter?
(Q6221158,P21,c(Q290))
action filter_type
action find
entity Q6221158
relation P21
type Q290
['Q6221158', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q6221158 property:P21 ?x . ?x rdf:type ontology:Q290 }
John Baxter
action filter_type
action find
entity John Baxter
relation gender
type sex
['John Baxter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:John_Baxter property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6221158,P21,c(Q290))
action filter_type
action find
entity Q6221158
relation P21
type Q290
[ANSWER]
['Q6221158', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q6221158 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity John Baxter
relation gender
type sex
['John Baxter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:John_Baxter property:gender ?x . ?x rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q838948 Q502895 Q482994
USER
Which works of art are max number of people and albums a part of ?
(c(Q502895)|c(Q482994),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
[[{'concept': 'Q502895'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?s ) WHERE { { ?j rdf:type ontology:Q838948 . ?a rdf:type ontology:Q502895 . ?a property:P361 ?j } UNION { ?a property:P361 ?j . ?j rdf:type ontology:Q838948 . ?a rdf:type ontology:Q482994 } } GROUP BY ?j } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?e property:P361 ?g . ?g rdf:type ontology:Q838948 . ?e rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q838948 . ?e rdf:type ontology:Q482994 . ?e property:P361 ?g } } GROUP BY ?g } }
action argmax
action union
action find_reverse_tuple_counts
relation part of
type work of art
type common name
action find_reverse_tuple_counts
relation part of
type work of art
type album
[[{'concept': 'common name'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?s ) WHERE { { ?j rdf:type ontology:work_of_art . ?a rdf:type ontology:common_name . ?a property:part_of ?j } UNION { ?a property:part_of ?j . ?j rdf:type ontology:work_of_art . ?a rdf:type ontology:album } } GROUP BY ?j } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?e property:part_of ?g . ?g rdf:type ontology:work_of_art . ?e rdf:type ontology:common_name } UNION { ?g rdf:type ontology:work_of_art . ?e rdf:type ontology:album . ?e property:part_of ?g } } GROUP BY ?g } }
[]
work of art common name album
Q1209853
SYSTEM
Dick Tracy
Q1209853
(c(Q502895)|c(Q482994),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
[ANSWER] is max number of people and albums a part of
[[{'concept': 'Q502895'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?s ) WHERE { { ?j rdf:type ontology:Q838948 . ?a rdf:type ontology:Q502895 . ?a property:P361 ?j } UNION { ?a property:P361 ?j . ?j rdf:type ontology:Q838948 . ?a rdf:type ontology:Q482994 } } GROUP BY ?j } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?e property:P361 ?g . ?g rdf:type ontology:Q838948 . ?e rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q838948 . ?e rdf:type ontology:Q482994 . ?e property:P361 ?g } } GROUP BY ?g } }
Dick Tracy
Dick Tracy is max number of people and albums a part of
Dick Tracy
action argmax
action union
action find_reverse_tuple_counts
relation part of
type work of art
type common name
action find_reverse_tuple_counts
relation part of
type work of art
type album
[[{'concept': 'common name'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?s ) WHERE { { ?j rdf:type ontology:work_of_art . ?a rdf:type ontology:common_name . ?a property:part_of ?j } UNION { ?a property:part_of ?j . ?j rdf:type ontology:work_of_art . ?a rdf:type ontology:album } } GROUP BY ?j } } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?o ) WHERE { { ?e property:part_of ?g . ?g rdf:type ontology:work_of_art . ?e rdf:type ontology:common_name } UNION { ?g rdf:type ontology:work_of_art . ?e rdf:type ontology:album . ?e property:part_of ?g } } GROUP BY ?g } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1209853
P1441
Q6619679
USER
Which fictional humanoid appears in that work of art ?
(c(Q6619679),P1441,Q1209853)
action filter_type
action find_reverse
entity Q1209853
relation P1441
type Q6619679
[{'concept': 'Q6619679'}, 'P1441', 'Q1209853']
SELECT DISTINCT ?h WHERE { ?h property:P1441 resource:Q1209853 . ?h rdf:type ontology:Q6619679 }
Dick Tracy
action filter_type
action find_reverse
entity Dick Tracy
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Dick Tracy']
SELECT DISTINCT ?h WHERE { ?h property:present_in_work resource:Dick_Tracy . ?h rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q22295543
SYSTEM
Breathless Mahoney
Q22295543
(c(Q6619679),P1441,Q1209853)
action filter_type
action find_reverse
entity Q1209853
relation P1441
type Q6619679
[ANSWER] appears in that work of art
[{'concept': 'Q6619679'}, 'P1441', 'Q1209853']
SELECT DISTINCT ?h WHERE { ?h property:P1441 resource:Q1209853 . ?h rdf:type ontology:Q6619679 }
Breathless Mahoney
Breathless Mahoney appears in that work of art
Breathless Mahoney
action filter_type
action find_reverse
entity Dick Tracy
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Dick Tracy']
SELECT DISTINCT ?h WHERE { ?h property:present_in_work resource:Dick_Tracy . ?h rdf:type ontology:fictional_humanoid }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1051419
P157
Q6619679 Q15619164
USER
Which abstract beings were murdered by lesser number of fictional humanoids than Vladimir Harkonnen ?
(c(Q15619164),P157,c(Q6619679))
action less
action find_tuple_counts
relation P157
type Q15619164
type Q6619679
action count
action filter_type
action find
entity Q1051419
relation P157
type Q6619679
[{'concept': 'Q15619164'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s property:P157 ?a . ?s rdf:type ontology:Q15619164 . ?a rdf:type ontology:Q6619679 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q1051419 property:P157 ?z . ?z rdf:type ontology:Q6619679 } } . FILTER ( ?l < ?h ) }
Vladimir Harkonnen
action less
action find_tuple_counts
relation killed by
type abstract being
type fictional humanoid
action count
action filter_type
action find
entity Vladimir Harkonnen
relation killed by
type fictional humanoid
[{'concept': 'abstract being'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s property:killed_by ?a . ?s rdf:type ontology:abstract_being . ?a rdf:type ontology:fictional_humanoid } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Vladimir_Harkonnen property:killed_by ?z . ?z rdf:type ontology:fictional_humanoid } } . FILTER ( ?l < ?h ) }
[]
fictional humanoid abstract being
Q51740 Q51727 Q51311
SYSTEM
Obi-Wan Kenobi, Count Dooku, John Locke
Q868246 Q14166042 Q13882625 Q51339 Q51727 Q51311 Q51725 Q2343363 Q54271 Q14430111 Q7714506 Q1998913 Q14165982 Q9076884 Q671534 Q13882674 Q27614034 Q27614033 Q27642045 Q2846264 Q1059976 Q14175641 Q2248965 Q51795 Q14175717 Q51791 Q2737965 Q26990219 Q14174498 Q932724 Q1077206 Q51740 Q51742
(c(Q15619164),P157,c(Q6619679))
action less
action find_tuple_counts
relation P157
type Q15619164
type Q6619679
action count
action filter_type
action find
entity Q1051419
relation P157
type Q6619679
[ANSWERS] were murdered by lesser number of fictional humanoids than Vladimir Harkonnen
[{'concept': 'Q15619164'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s property:P157 ?a . ?s rdf:type ontology:Q15619164 . ?a rdf:type ontology:Q6619679 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q1051419 property:P157 ?z . ?z rdf:type ontology:Q6619679 } } . FILTER ( ?l < ?h ) }
Coleman Trebor Cashmere Bruno Büring Alex Rousseau Count Dooku John Locke Mace Windu Saesee Tiin Ki-Adi-Mundi Clove Poggle the Lesser Aayla Secura Gloss Shu Mai Karneios Wolf-Dieter Dabelstein Ellis Robinson Sammy Robinson Ritchie Doucet Andre Drazen Sora Bulq Rue Jocasta Nu Jango Fett Marvel Nute Gunray Zam Wesell Vernita Yvonne Green Wiress Kit Fisto Bill Obi-Wan Kenobi Agen Kolar
Obi-Wan Kenobi, Count Dooku and John Locke were murdered by lesser number of fictional humanoids than Vladimir Harkonnen
Obi-Wan Kenobi Count Dooku John Locke
action less
action find_tuple_counts
relation killed by
type abstract being
type fictional humanoid
action count
action filter_type
action find
entity Vladimir Harkonnen
relation killed by
type fictional humanoid
[{'concept': 'abstract being'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s property:killed_by ?a . ?s rdf:type ontology:abstract_being . ?a rdf:type ontology:fictional_humanoid } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Vladimir_Harkonnen property:killed_by ?z . ?z rdf:type ontology:fictional_humanoid } } . FILTER ( ?l < ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1209853
P1040
Q502895
USER
What is the name of person who editted Dick Tracy ?
(Q1209853,P1040,c(Q502895))
action filter_type
action find
entity Q1209853
relation P1040
type Q502895
['Q1209853', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1209853 property:P1040 ?l . ?l rdf:type ontology:Q502895 }
Dick Tracy
action filter_type
action find
entity Dick Tracy
relation film editor
type common name
['Dick Tracy', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Dick_Tracy property:film_editor ?l . ?l rdf:type ontology:common_name }
[]
common name
Q976609
SYSTEM
Richard Marks
Q976609
(Q1209853,P1040,c(Q502895))
action filter_type
action find
entity Q1209853
relation P1040
type Q502895
The name of person editted Dick Tracy is named [ANSWER]
['Q1209853', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1209853 property:P1040 ?l . ?l rdf:type ontology:Q502895 }
Richard Marks
The name of person editted Dick Tracy is named Richard Marks
Richard Marks
action filter_type
action find
entity Dick Tracy
relation film editor
type common name
['Dick Tracy', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Dick_Tracy property:film_editor ?l . ?l rdf:type ontology:common_name }
[]