Simple Question (Direct)
Simple Question
Q2337565
P27
Q1048835
USER
Which political territory is Stefan Schmidt a civilian of ?
(Q2337565,P27,c(Q1048835))
action filter_type
action find
entity Q2337565
relation P27
type Q1048835
['Q2337565', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q2337565 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Stefan Schmidt
action filter_type
action find
entity Stefan Schmidt
relation country of citizenship
type political territorial entity
['Stefan Schmidt', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Stefan_Schmidt property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q2337565,P27,c(Q1048835))
action filter_type
action find
entity Q2337565
relation P27
type Q1048835
[ANSWER] is Stefan Schmidt a civilian of
['Q2337565', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q2337565 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Germany
Germany is Stefan Schmidt a civilian of
Germany
action filter_type
action find
entity Stefan Schmidt
relation country of citizenship
type political territorial entity
['Stefan Schmidt', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Stefan_Schmidt property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P194
Q1752346
USER
Which assembly is the representative body for that political territory ?
(Q183,P194,c(Q1752346))
action filter_type
action find
entity Q183
relation P194
type Q1752346
['Q183', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1752346 . resource:Q183 property:P194 ?a }
Germany
action filter_type
action find
entity Germany
relation legislative body
type assembly
['Germany', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:assembly . resource:Germany property:legislative_body ?a }
[]
assembly
Q154797
SYSTEM
Bundestag of Germany
Q154797
(Q183,P194,c(Q1752346))
action filter_type
action find
entity Q183
relation P194
type Q1752346
[ANSWER] is the representative body for that political territory
['Q183', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1752346 . resource:Q183 property:P194 ?a }
Bundestag of Germany
Bundestag of Germany is the representative body for that political territory
Bundestag of Germany
action filter_type
action find
entity Germany
relation legislative body
type assembly
['Germany', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:assembly . resource:Germany property:legislative_body ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q222
Q1752346
USER
And how about Albania?
(Q222,P194,c(Q1752346))
action filter_type
action find
entity Q222
relation P194
type Q1752346
['Q222', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?s WHERE { resource:Q222 property:P194 ?s . ?s rdf:type ontology:Q1752346 }
Albania
action filter_type
action find
entity Albania
relation legislative body
type assembly
['Albania', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?s WHERE { resource:Albania property:legislative_body ?s . ?s rdf:type ontology:assembly }
[]
assembly
Q1135960
SYSTEM
Parliament of Albania
Q1135960
(Q222,P194,c(Q1752346))
action filter_type
action find
entity Q222
relation P194
type Q1752346
[ANSWER]
['Q222', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?s WHERE { resource:Q222 property:P194 ?s . ?s rdf:type ontology:Q1752346 }
Parliament of Albania
Parliament of Albania
action filter_type
action find
entity Albania
relation legislative body
type assembly
['Albania', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?s WHERE { resource:Albania property:legislative_body ?s . ?s rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q212
P551
Q2537344
USER
Who resides at Ukraine ?
(c(Q2537344),P551,Q212)
action filter_type
action find_reverse
entity Q212
relation P551
type Q2537344
[{'concept': 'Q2537344'}, 'P551', 'Q212']
SELECT DISTINCT ?w WHERE { ?w property:P551 resource:Q212 . ?w rdf:type ontology:Q2537344 }
Ukraine
action filter_type
action find_reverse
entity Ukraine
relation residence
type beast species in the Harry Potter universe
[{'concept': 'beast species in the Harry Potter universe'}, 'residence', 'Ukraine']
SELECT DISTINCT ?w WHERE { ?w property:residence resource:Ukraine . ?w rdf:type ontology:beast_species_in_the_Harry_Potter_universe }
[]
beast species in the Harry Potter universe
Q12164049
SYSTEM
Ukrainian Ironbelly
Q12164049
(c(Q2537344),P551,Q212)
action filter_type
action find_reverse
entity Q212
relation P551
type Q2537344
[ANSWER] resides at Ukraine
[{'concept': 'Q2537344'}, 'P551', 'Q212']
SELECT DISTINCT ?w WHERE { ?w property:P551 resource:Q212 . ?w rdf:type ontology:Q2537344 }
Ukrainian Ironbelly
Ukrainian Ironbelly resides at Ukraine
Ukrainian Ironbelly
action filter_type
action find_reverse
entity Ukraine
relation residence
type beast species in the Harry Potter universe
[{'concept': 'beast species in the Harry Potter universe'}, 'residence', 'Ukraine']
SELECT DISTINCT ?w WHERE { ?w property:residence resource:Ukraine . ?w rdf:type ontology:beast_species_in_the_Harry_Potter_universe }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q212
P840
Q838948
USER
Which works of art have their narrative set in that administrative territory ?
(c(Q838948),P840,Q12164049)
action filter_type
action find_reverse
entity Q212
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q12164049']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q838948 . ?g property:P840 resource:Q212 }
Ukraine
action filter_type
action find_reverse
entity Ukraine
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Ukrainian Ironbelly']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:work_of_art . ?g property:narrative_location resource:Ukraine }
[]
work of art
Q1048846 Q232774 Q2992240
SYSTEM
The Sum of All Fears, Transformers: Dark of the Moon, The North Star
Q112562 Q704456 Q7771341 Q7732258 Q1532296 Q4087329 Q498150 Q313659 Q1048846 Q829250 Q55188 Q1764277 Q815550 Q253921 Q1213999 Q1982098 Q833579 Q308681 Q1976473 Q2096663 Q2659421 Q7759748 Q1626585 Q1409627 Q478352 Q4195538 Q2200470 Q1767142 Q17007508 Q2992240 Q4424041 Q4110928 Q4359800 Q751842 Q1964744 Q1466178 Q72276 Q3203816 Q232774
(c(Q838948),P840,Q12164049)
action filter_type
action find_reverse
entity Q212
relation P840
type Q838948
[ANSWERS] have their narrative set in that administrative territory
[{'concept': 'Q838948'}, 'P840', 'Q12164049']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q838948 . ?g property:P840 resource:Q212 }
The Charge of the Light Brigade Arsenal The Undefeated The English Surgeon The White Bird Marked with Black Ukraine in Flames Taras Bulba Everything Is Illuminated The Sum of All Fears Man with a Movie Camera Earth Taras Bulba Transporter 3 Import/Export Commissar The New Adventures of the Elusive Avengers Secret Agent Lord of War The Elusive Avengers Shchors Evilenko The Rebel Son Only Old Men Are Going to Battle Shadows of Forgotten Ancestors Workingman's Death Ivan With Fire and Sword Frostbite The Last Port The North Star Two Comrades Were Serving Viy Pesnya vsegda s nami Rainbow Zvenigora Universal Soldier: Regeneration A Good Day to Die Hard The Man with a Cross Transformers: Dark of the Moon
The Sum of All Fears, Transformers: Dark of the Moon and The North Star have their narrative set in that administrative territory
The Sum of All Fears Transformers: Dark of the Moon The North Star
action filter_type
action find_reverse
entity Ukraine
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Ukrainian Ironbelly']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:work_of_art . ?g property:narrative_location resource:Ukraine }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q838948 Q3895768 Q502895
USER
Which works of art are approximately 2 fictional locations and people present in ?
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
value 2
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } GROUP BY ?a } . FILTER ( ?k = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
value 2
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:fictional_location ) ( ontology:common_name ) } } GROUP BY ?a } . FILTER ( ?k = 2 ) }
[]
work of art fictional location common name
Q217020 Q18067135 Q17485699
SYSTEM
Thor, Bridge of Spies, Alice Through the Looking Glass
Q17485699 Q748030 Q217020 Q18067135 Q156519
(c(Q3895768)|c(Q502895),P1441,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q502895
value 2
[ANSWERS] are approximately 2 fictional locations and people present in
[[{'concept': 'Q3895768'}, {'concept': 'Q502895'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:Q3895768 ) ( ontology:Q502895 ) } } GROUP BY ?a } . FILTER ( ?k = 2 ) }
Alice Through the Looking Glass The 13th Warrior Thor Bridge of Spies Around the World in 80 Days
Thor, Bridge of Spies and Alice Through the Looking Glass are approximately 2 fictional locations and people present in
Thor Bridge of Spies Alice Through the Looking Glass
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
action find_reverse_tuple_counts
relation present in work
type work of art
type common name
value 2
[[{'concept': 'fictional location'}, {'concept': 'common name'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?k ) WHERE { ?y rdf:type ?m . VALUES ( ?m ) { ( ontology:fictional_location ) ( ontology:common_name ) } } GROUP BY ?a } . FILTER ( ?k = 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q217020
P629
Q3249551
USER
Which process represents an edition or translation of that work of art ?
(c(Q3249551),P629,Q217020)
action filter_type
action find_reverse
entity Q217020
relation P629
type Q3249551
[{'concept': 'Q3249551'}, 'P629', 'Q217020']
SELECT DISTINCT ?h WHERE { ?h property:P629 resource:Q217020 . ?h rdf:type ontology:Q3249551 }
Thor
action filter_type
action find_reverse
entity Thor
relation edition or translation of
type process
[{'concept': 'process'}, 'edition or translation of', 'Thor']
SELECT DISTINCT ?h WHERE { ?h property:edition_or_translation_of resource:Thor . ?h rdf:type ontology:process }
[]
process
Clarification for simple ques.
Q217020
SYSTEM
Did you mean Thor ?
Q217020 Q18067135 Q17485699
(c(Q3249551),P629,Q217020) (c(Q3249551),P629,Q18067135) (c(Q3249551),P629,Q17485699)
[ANSWER]
[{'concept': 'Q3249551'}, 'P629', 'Q217020'] [{'concept': 'Q3249551'}, 'P629', 'Q18067135'] [{'concept': 'Q3249551'}, 'P629', 'Q17485699']
SELECT DISTINCT ?h WHERE { ?h property:P629 resource:Q217020 . ?h rdf:type ontology:Q3249551 }
Thor Bridge of Spies Alice Through the Looking Glass
Did you mean Thor ?
Thor
[{'concept': 'process'}, 'edition or translation of', 'Thor'] [{'concept': 'process'}, 'edition or translation of', 'Bridge of Spies'] [{'concept': 'process'}, 'edition or translation of', 'Alice Through the Looking Glass']
SELECT DISTINCT ?h WHERE { ?h property:edition_or_translation_of resource:Thor . ?h rdf:type ontology:process }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q3249551),P629,Q217020)
[{'concept': 'Q3249551'}, 'P629', 'Q217020']
[{'concept': 'process'}, 'edition or translation of', 'Thor']
[]
Q24046091
SYSTEM
Thor
Q24046091
(c(Q3249551),P629,Q217020)
action filter_type
action find_reverse
entity Q217020
relation P629
type Q3249551
[ANSWER] represents an edition or translation of that work of art
[{'concept': 'Q3249551'}, 'P629', 'Q217020']
SELECT DISTINCT ?h WHERE { ?h property:P629 resource:Q217020 . ?h rdf:type ontology:Q3249551 }
Thor
Thor represents an edition or translation of that work of art
Thor
action filter_type
action find_reverse
entity Thor
relation edition or translation of
type process
[{'concept': 'process'}, 'edition or translation of', 'Thor']
SELECT DISTINCT ?h WHERE { ?h property:edition_or_translation_of resource:Thor . ?h rdf:type ontology:process }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q407431
P828
Q8386 Q3249551
USER
Which drugs are the underlying cause of around the same number of processes as Warfarin ?
(c(Q3249551),P828,c(Q8386))
action approx
action find_reverse_tuple_counts
relation P828
type Q8386
type Q3249551
action count
action filter_type
action find
entity Q407431
relation P828
type Q8386
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q8386'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?t ) WHERE { ?v rdf:type ontology:Q8386 . ?d rdf:type ontology:Q3249551 . ?d property:P828 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Q407431 property:P828 ?k . ?k rdf:type ontology:Q8386 } } . FILTER ( ?t = ?h ) }
Warfarin
action approx
action find_reverse_tuple_counts
relation has cause
type drug
type process
action count
action filter_type
action find
entity Warfarin
relation has cause
type drug
[{'concept': 'process'}, 'has cause', {'concept': 'drug'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?t ) WHERE { ?v rdf:type ontology:drug . ?d rdf:type ontology:process . ?d property:has_cause ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Warfarin property:has_cause ?k . ?k rdf:type ontology:drug } } . FILTER ( ?t = ?h ) }
[]
drug process
Q407431 Q18216 Q240642
SYSTEM
Warfarin, acetylsalicylic acid, valproic acid
Q422416 Q32921 Q18216 Q12187 Q194270 Q411594 Q663 Q2862455 Q282003 Q416740 Q214769 Q162867 Q908663 Q407541 Q905750 Q418011 Q409665 Q207843 Q753 Q407431 Q130336 Q47512 Q153 Q423005 Q427523 Q240642 Q1997
(c(Q3249551),P828,c(Q8386))
action approx
action find_reverse_tuple_counts
relation P828
type Q8386
type Q3249551
action count
action filter_type
action find
entity Q407431
relation P828
type Q8386
[ANSWERS] are the underlying cause of around the same number of processes as Warfarin
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q8386'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?t ) WHERE { ?v rdf:type ontology:Q8386 . ?d rdf:type ontology:Q3249551 . ?d property:P828 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Q407431 property:P828 ?k . ?k rdf:type ontology:Q8386 } } . FILTER ( ?t = ?h ) }
17β-estradiol halothane acetylsalicylic acid antibiotics hallucinogen methoxyflurane aluminium mequinol Lindane enflurane Magnesium oxide nitroglycerin kaolin fentanyl Nitrous oxide mechlorethamine disulfiram Nitric Oxide copper Warfarin Phenol acetic acid ethanol Malathion opioid valproic acid Carbon dioxide
Warfarin, acetylsalicylic acid and valproic acid are the underlying cause of around the same number of processes as Warfarin
Warfarin acetylsalicylic acid valproic acid
action approx
action find_reverse_tuple_counts
relation has cause
type drug
type process
action count
action filter_type
action find
entity Warfarin
relation has cause
type drug
[{'concept': 'process'}, 'has cause', {'concept': 'drug'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?t ) WHERE { ?v rdf:type ontology:drug . ?d rdf:type ontology:process . ?d property:has_cause ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Warfarin property:has_cause ?k . ?k rdf:type ontology:drug } } . FILTER ( ?t = ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q162867
P828
Q8386 Q3249551
USER
And what about nitroglycerin?
(c(Q3249551),P828,c(Q8386))
action approx
action find_reverse_tuple_counts
relation P828
type Q8386
type Q3249551
action count
action filter_type
action find
entity Q162867
relation P828
type Q8386
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q8386'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?l ) WHERE { ?i rdf:type ontology:Q8386 . ?y rdf:type ontology:Q3249551 . ?y property:P828 ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q162867 property:P828 ?h . ?h rdf:type ontology:Q8386 } } . FILTER ( ?l = ?j ) }
nitroglycerin
action approx
action find_reverse_tuple_counts
relation has cause
type drug
type process
action count
action filter_type
action find
entity nitroglycerin
relation has cause
type drug
[{'concept': 'process'}, 'has cause', {'concept': 'drug'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?l ) WHERE { ?i rdf:type ontology:drug . ?y rdf:type ontology:process . ?y property:has_cause ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:nitroglycerin property:has_cause ?h . ?h rdf:type ontology:drug } } . FILTER ( ?l = ?j ) }
[]
drug process
Q407431 Q18216 Q240642
SYSTEM
Warfarin, acetylsalicylic acid, valproic acid
Q422416 Q32921 Q18216 Q12187 Q194270 Q411594 Q663 Q2862455 Q282003 Q416740 Q214769 Q162867 Q908663 Q407541 Q905750 Q418011 Q409665 Q207843 Q753 Q407431 Q130336 Q47512 Q153 Q423005 Q427523 Q240642 Q1997
(c(Q3249551),P828,c(Q8386))
action approx
action find_reverse_tuple_counts
relation P828
type Q8386
type Q3249551
action count
action filter_type
action find
entity Q162867
relation P828
type Q8386
[ANSWERS]
[{'concept': 'Q3249551'}, 'P828', {'concept': 'Q8386'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?l ) WHERE { ?i rdf:type ontology:Q8386 . ?y rdf:type ontology:Q3249551 . ?y property:P828 ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q162867 property:P828 ?h . ?h rdf:type ontology:Q8386 } } . FILTER ( ?l = ?j ) }
17β-estradiol halothane acetylsalicylic acid antibiotics hallucinogen methoxyflurane aluminium mequinol Lindane enflurane Magnesium oxide nitroglycerin kaolin fentanyl Nitrous oxide mechlorethamine disulfiram Nitric Oxide copper Warfarin Phenol acetic acid ethanol Malathion opioid valproic acid Carbon dioxide
Warfarin acetylsalicylic acid valproic acid
action approx
action find_reverse_tuple_counts
relation has cause
type drug
type process
action count
action filter_type
action find
entity nitroglycerin
relation has cause
type drug
[{'concept': 'process'}, 'has cause', {'concept': 'drug'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?l ) WHERE { ?i rdf:type ontology:drug . ?y rdf:type ontology:process . ?y property:has_cause ?i } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:nitroglycerin property:has_cause ?h . ?h rdf:type ontology:drug } } . FILTER ( ?l = ?j ) }
[]