Simple Question (Direct)
Simple Question
Q1047493
P40
Q502895
USER
Who is a child of Casimir Katz ?
(Q1047493,P40,c(Q502895))
action filter_type
action find
entity Q1047493
relation P40
type Q502895
['Q1047493', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1047493 property:P40 ?t . ?t rdf:type ontology:Q502895 }
Casimir Katz
action filter_type
action find
entity Casimir Katz
relation child
type common name
['Casimir Katz', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Casimir_Katz property:child ?t . ?t rdf:type ontology:common_name }
[]
common name
Q1047486
SYSTEM
Casimir Otto Katz
Q1047486
(Q1047493,P40,c(Q502895))
action filter_type
action find
entity Q1047493
relation P40
type Q502895
A child of Casimir Katz is the [ANSWER]
['Q1047493', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1047493 property:P40 ?t . ?t rdf:type ontology:Q502895 }
Casimir Otto Katz
A child of Casimir Katz is the Casimir Otto Katz
Casimir Otto Katz
action filter_type
action find
entity Casimir Katz
relation child
type common name
['Casimir Katz', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Casimir_Katz property:child ?t . ?t rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1047486 Q183
P27
Q1048835
USER
Is Germany the native country of Casimir Otto Katz ?
(Q1047486,P27,Q183)
action is_in
entity Q183
action find
entity Q1047486
relation P27
['Q1047486', 'P27', 'Q183']
ASK WHERE { resource:Q1047486 property:P27 resource:Q183 }
Casimir Otto Katz Germany
action is_in
entity Germany
action find
entity Casimir Otto Katz
relation country of citizenship
['Casimir Otto Katz', 'country of citizenship', 'Germany']
ASK WHERE { resource:Casimir_Otto_Katz property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1047486,P27,Q183)
action is_in
entity Q183
action find
entity Q1047486
relation P27
[ANSWER]
['Q1047486', 'P27', 'Q183']
ASK WHERE { resource:Q1047486 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Casimir Otto Katz
relation country of citizenship
['Casimir Otto Katz', 'country of citizenship', 'Germany']
ASK WHERE { resource:Casimir_Otto_Katz property:country_of_citizenship resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1047493 Q64
P20
Q56061
USER
Is Berlin the place of death of that person ?
(Q1047493,P20,Q64)
action is_in
entity Q64
action find
entity Q1047493
relation P20
['Q1047493', 'P20', 'Q64']
ASK WHERE { resource:Q1047493 property:P20 resource:Q64 }
Casimir Katz Berlin
action is_in
entity Berlin
action find
entity Casimir Katz
relation place of death
['Casimir Katz', 'place of death', 'Berlin']
ASK WHERE { resource:Casimir_Katz property:place_of_death resource:Berlin }
[]
administrative territorial entity
SYSTEM
YES
(Q1047493,P20,Q64)
action is_in
entity Q64
action find
entity Q1047493
relation P20
[ANSWER]
['Q1047493', 'P20', 'Q64']
ASK WHERE { resource:Q1047493 property:P20 resource:Q64 }
Yes
action is_in
entity Berlin
action find
entity Casimir Katz
relation place of death
['Casimir Katz', 'place of death', 'Berlin']
ASK WHERE { resource:Casimir_Katz property:place_of_death resource:Berlin }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1047486 Q4325874 Q183
P27
Q1048835
USER
Is Casimir Otto Katz a native of Novoselivka and Germany ?
(Q1047486,P27,Q4325874) (Q1047486,P27,Q183)
action is_in
entity Q1047486
action intersection
action find_reverse
entity Q4325874
relation P27
action find_reverse
entity Q183
relation P27
['Q1047486', 'P27', 'Q4325874'] ['Q1047486', 'P27', 'Q183']
ASK WHERE { resource:Q1047486 property:P27 resource:Q183 . resource:Q1047486 property:P27 resource:Q4325874 }
Casimir Otto Katz Novoselivka Germany
action is_in
entity Casimir Otto Katz
action intersection
action find_reverse
entity Novoselivka
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Casimir Otto Katz', 'country of citizenship', 'Novoselivka'] ['Casimir Otto Katz', 'country of citizenship', 'Germany']
ASK WHERE { resource:Casimir_Otto_Katz property:country_of_citizenship resource:Germany . resource:Casimir_Otto_Katz property:country_of_citizenship resource:Novoselivka }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q1047486,P27,Q4325874) (Q1047486,P27,Q183)
action is_in
entity Q1047486
action intersection
action find_reverse
entity Q4325874
relation P27
action find_reverse
entity Q183
relation P27
[ANSWER]
['Q1047486', 'P27', 'Q4325874'] ['Q1047486', 'P27', 'Q183']
ASK WHERE { resource:Q1047486 property:P27 resource:Q183 . resource:Q1047486 property:P27 resource:Q4325874 }
NO and YES respectively
action is_in
entity Casimir Otto Katz
action intersection
action find_reverse
entity Novoselivka
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Casimir Otto Katz', 'country of citizenship', 'Novoselivka'] ['Casimir Otto Katz', 'country of citizenship', 'Germany']
ASK WHERE { resource:Casimir_Otto_Katz property:country_of_citizenship resource:Germany . resource:Casimir_Otto_Katz property:country_of_citizenship resource:Novoselivka }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1047486
P21
Q290
USER
Which sex does that person belong to ?
action filter_type
action find
entity Q1047486
relation P21
type Q290
SELECT DISTINCT ?i WHERE { resource:Q1047486 property:P21 ?i . ?i rdf:type ontology:Q290 }
Casimir Otto Katz
action filter_type
action find
entity Casimir Otto Katz
relation gender
type sex
SELECT DISTINCT ?i WHERE { resource:Casimir_Otto_Katz property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q1047486
relation P21
type Q290
That person belongs to [ANSWER]
SELECT DISTINCT ?i WHERE { resource:Q1047486 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Casimir Otto Katz
relation gender
type sex
SELECT DISTINCT ?i WHERE { resource:Casimir_Otto_Katz property:gender ?i . ?i rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P180
Q340169 Q3305213
USER
How many medias and paintings depict that sex ?
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097) (c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097'] [{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } }
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male'] [{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:media ) ( ontology:painting ) } }
[]
media painting
SYSTEM
1 medias and 1 paintings
Q18713957 Q20020115
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097) (c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097'] [{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } }
Raja Surendra Vikram Shah at the age of 15 with his prime minister Portrait of a Young Man
1 medias and 1 paintings
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male'] [{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:media ) ( ontology:painting ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people as that sex as their class ?
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
SELECT DISTINCT ?v WHERE { ?v property:P136 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
SELECT DISTINCT ?v WHERE { ?v property:genre resource:male . ?v rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS]
SELECT DISTINCT ?v WHERE { ?v property:P136 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
SELECT DISTINCT ?v WHERE { ?v property:genre resource:male . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q16875637
P1303
Q34379 Q502895
USER
Which musical instruments do lesser number of people know to play than transverse flute ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q16875637
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P1303 resource:Q16875637 } } . FILTER ( ?d < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?k } }
transverse flute
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity transverse flute
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:common_name . ?m property:instrument resource:transverse_flute } } . FILTER ( ?d < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?k } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q16875637
relation P1303
type Q502895
[ANSWERS] lesser number of people know to play than transverse flute
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P1303 resource:Q16875637 } } . FILTER ( ?d < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?k } }
spoon cajón wind instrument
Spoon, cajón and wind instrument lesser number of people know to play than transverse flute
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity transverse flute
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:common_name . ?m property:instrument resource:transverse_flute } } . FILTER ( ?d < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?r ) AS ?d ) WHERE { ?r property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?k } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q313288
P84
Q16970
USER
What were Augustus Pugin an architect of ?
(c(Q16970),P84,Q313288)
action filter_type
action find_reverse
entity Q313288
relation P84
type Q16970
[{'concept': 'Q16970'}, 'P84', 'Q313288']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q16970 . ?h property:P84 resource:Q313288 }
Augustus Pugin
action filter_type
action find_reverse
entity Augustus Pugin
relation architect
type church
[{'concept': 'church'}, 'architect', 'Augustus Pugin']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:church . ?h property:architect resource:Augustus_Pugin }
[]
church
Q1638891 Q1545350 Q1138085
SYSTEM
St Mary's Cathedral, Newcastle upon Tyne, Nottingham Cathedral, St Chad's Cathedral
Q1357895 Q20642155 Q1638891 Q1451262 Q1897809 Q1545350 Q1138066 Q1138085
(c(Q16970),P84,Q313288)
action filter_type
action find_reverse
entity Q313288
relation P84
type Q16970
Augustus Pugin [ANSWERS]
[{'concept': 'Q16970'}, 'P84', 'Q313288']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q16970 . ?h property:P84 resource:Q313288 }
Northampton Cathedral St Mary's Cathedral, Hobart St Mary's Cathedral, Newcastle upon Tyne St George's Cathedral, Southwark St Mary's Cathedral, Killarney Nottingham Cathedral St. Aidan's Cathedral St Chad's Cathedral
Augustus Pugin St Mary's Cathedral, Newcastle upon Tyne, Nottingham Cathedral and St Chad's Cathedral
St Mary's Cathedral, Newcastle upon Tyne Nottingham Cathedral St Chad's Cathedral
action filter_type
action find_reverse
entity Augustus Pugin
relation architect
type church
[{'concept': 'church'}, 'architect', 'Augustus Pugin']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:church . ?h property:architect resource:Augustus_Pugin }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1047493
P22
Q502895
USER
Which person has Casimir Katz as father ?
(c(Q502895),P22,Q1047493)
action filter_type
action find_reverse
entity Q1047493
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1047493']
SELECT DISTINCT ?j WHERE { ?j property:P22 resource:Q1047493 . ?j rdf:type ontology:Q502895 }
Casimir Katz
action filter_type
action find_reverse
entity Casimir Katz
relation father
type common name
[{'concept': 'common name'}, 'father', 'Casimir Katz']
SELECT DISTINCT ?j WHERE { ?j property:father resource:Casimir_Katz . ?j rdf:type ontology:common_name }
[]
common name
Q1047486
SYSTEM
Casimir Otto Katz
Q1047486
(c(Q502895),P22,Q1047493)
action filter_type
action find_reverse
entity Q1047493
relation P22
type Q502895
[ANSWER] has Casimir Katz as father
[{'concept': 'Q502895'}, 'P22', 'Q1047493']
SELECT DISTINCT ?j WHERE { ?j property:P22 resource:Q1047493 . ?j rdf:type ontology:Q502895 }
Casimir Otto Katz
Casimir Otto Katz has Casimir Katz as father
Casimir Otto Katz
action filter_type
action find_reverse
entity Casimir Katz
relation father
type common name
[{'concept': 'common name'}, 'father', 'Casimir Katz']
SELECT DISTINCT ?j WHERE { ?j property:father resource:Casimir_Katz . ?j rdf:type ontology:common_name }
[]