Simple Question (Direct)
Simple Question
Q1360429
P102
Q7278
USER
Which political party is Ernst Viebig a member of ?
(Q1360429,P102,c(Q7278))
action filter_type
action find
entity Q1360429
relation P102
type Q7278
['Q1360429', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q1360429 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Ernst Viebig
action filter_type
action find
entity Ernst Viebig
relation member of political party
type political party
['Ernst Viebig', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Ernst_Viebig property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
political party
Q153401
SYSTEM
Communist Party of Germany
Q153401
(Q1360429,P102,c(Q7278))
action filter_type
action find
entity Q1360429
relation P102
type Q7278
The [ANSWER] is Ernst Viebig a member of
['Q1360429', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q1360429 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Communist Party of Germany
The Communist Party of Germany is Ernst Viebig a member of
Communist Party of Germany
action filter_type
action find
entity Ernst Viebig
relation member of political party
type political party
['Ernst Viebig', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Ernst_Viebig property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1360429
P607
Q198
USER
What was was that person a part of ?
(Q153401,P607,c(Q198))
action filter_type
action find
entity Q1360429
relation P607
type Q198
['Q153401', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?m WHERE { resource:Q1360429 property:P607 ?m . ?m rdf:type ontology:Q198 }
Ernst Viebig
action filter_type
action find
entity Ernst Viebig
relation conflict
type war
['Communist Party of Germany', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?m WHERE { resource:Ernst_Viebig property:conflict ?m . ?m rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q153401,P607,c(Q198))
action filter_type
action find
entity Q1360429
relation P607
type Q198
That person was a part of [ANSWER]
['Q153401', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?m WHERE { resource:Q1360429 property:P607 ?m . ?m rdf:type ontology:Q198 }
World War I
That person was a part of World War I
World War I
action filter_type
action find
entity Ernst Viebig
relation conflict
type war
['Communist Party of Germany', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?m WHERE { resource:Ernst_Viebig property:conflict ?m . ?m rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1360429
P106
Q12737077
USER
What is the job of Ernst Viebig ?
(Q1360429,P106,c(Q12737077))
action filter_type
action find
entity Q1360429
relation P106
type Q12737077
['Q1360429', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q1360429 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Ernst Viebig
action filter_type
action find
entity Ernst Viebig
relation occupation
type occupation
['Ernst Viebig', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Ernst_Viebig property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q1360429,P106,c(Q12737077))
action filter_type
action find
entity Q1360429
relation P106
type Q12737077
The job of Ernst Viebig is a [ANSWER]
['Q1360429', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q1360429 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
composer
The job of Ernst Viebig is a composer
composer
action filter_type
action find
entity Ernst Viebig
relation occupation
type occupation
['Ernst Viebig', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Ernst_Viebig property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1360429
P21
Q290
USER
Which sex does that person belong to ?
(Q36834,P21,c(Q290))
action filter_type
action find
entity Q1360429
relation P21
type Q290
['Q36834', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1360429 property:P21 ?i . ?i rdf:type ontology:Q290 }
Ernst Viebig
action filter_type
action find
entity Ernst Viebig
relation gender
type sex
['composer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Ernst_Viebig property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q36834,P21,c(Q290))
action filter_type
action find
entity Q1360429
relation P21
type Q290
That person belongs to [ANSWER]
['Q36834', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1360429 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Ernst Viebig
relation gender
type sex
['composer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Ernst_Viebig property:gender ?i . ?i rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1930187
P921
Q12737077 Q191067 Q838948
USER
Which occupations were discussed in less number of articles or works of art than journalist ?
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1930187
relation P921
type Q191067
type Q838948
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } . ?h rdf:type ?s } GROUP BY ?i } . FILTER ( ?t < ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { { ?p rdf:type ontology:Q191067 } UNION { ?p rdf:type ontology:Q838948 } } . ?p property:P921 resource:Q1930187 } } }
journalist
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity journalist
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:article ) ( ontology:work_of_art ) } . ?h rdf:type ?s } GROUP BY ?i } . FILTER ( ?t < ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { { ?p rdf:type ontology:article } UNION { ?p rdf:type ontology:work_of_art } } . ?p property:main_subject resource:journalist } } }
[]
occupation article work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1930187
relation P921
type Q191067
type Q838948
[ANSWERS] were discussed in less number of articles or works of art than journalist
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } . ?h rdf:type ?s } GROUP BY ?i } . FILTER ( ?t < ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { { ?p rdf:type ontology:Q191067 } UNION { ?p rdf:type ontology:Q838948 } } . ?p property:P921 resource:Q1930187 } } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were discussed in less number of articles or works of art than journalist
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity journalist
relation main subject
type article
type work of art
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:article ) ( ontology:work_of_art ) } . ?h rdf:type ?s } GROUP BY ?i } . FILTER ( ?t < ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { { ?p rdf:type ontology:article } UNION { ?p rdf:type ontology:work_of_art } } . ?p property:main_subject resource:journalist } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q875530 Q1360429
P19 P937
Q56061
USER
Which administrative territories were Ernst Viebig born at or are the work locations of Max Gandolf von Kuenburg ?
OR((Q1360429,P19,c(Q56061)), (Q875530,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1360429
relation P19
action find
entity Q875530
relation P937
type Q56061
{'OR': [['Q1360429', 'P19', {'concept': 'Q56061'}], ['Q875530', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1360429 property:P19 ?m } UNION { resource:Q875530 property:P937 ?m } } . ?m rdf:type ontology:Q56061 }
Max Gandolf von Kuenburg Ernst Viebig
action filter_type
action union
action find
entity Ernst Viebig
relation place of birth
action find
entity Max Gandolf von Kuenburg
relation work location
type administrative territorial entity
{'OR': [['Ernst Viebig', 'place of birth', {'concept': 'administrative territorial entity'}], ['Max Gandolf von Kuenburg', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Ernst_Viebig property:place_of_birth ?m } UNION { resource:Max_Gandolf_von_Kuenburg property:work_location ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q34713
SYSTEM
Berlin, Salzburg
Q64 Q34713
OR((Q1360429,P19,c(Q56061)), (Q875530,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1360429
relation P19
action find
entity Q875530
relation P937
type Q56061
Ernst Viebig were born in [ANSWERS] or are the work locations of Max Gandolf von Kuenburg
{'OR': [['Q1360429', 'P19', {'concept': 'Q56061'}], ['Q875530', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1360429 property:P19 ?m } UNION { resource:Q875530 property:P937 ?m } } . ?m rdf:type ontology:Q56061 }
Berlin Salzburg
Ernst Viebig were born in Berlin and Salzburg or are the work locations of Max Gandolf von Kuenburg
Berlin Salzburg
action filter_type
action union
action find
entity Ernst Viebig
relation place of birth
action find
entity Max Gandolf von Kuenburg
relation work location
type administrative territorial entity
{'OR': [['Ernst Viebig', 'place of birth', {'concept': 'administrative territorial entity'}], ['Max Gandolf von Kuenburg', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Ernst_Viebig property:place_of_birth ?m } UNION { resource:Max_Gandolf_von_Kuenburg property:work_location ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q101723
P937
Q502895
USER
Do Hannes Stein have those administrative territories as their work location ?
(Q101723,P937,Q64) (Q101723,P937,Q34713)
action is_in
entity prev_answer
action find
entity Q101723
relation P937
['Q101723', 'P937', 'Q64'] ['Q101723', 'P937', 'Q34713']
ASK WHERE { resource:Q101723 property:P937 ?x . VALUES ( ?x ) { ( resource:Q64 ) ( resource:Q34713 ) } }
Hannes Stein
action is_in
entity prev_answer
action find
entity Hannes Stein
relation work location
['Hannes Stein', 'work location', 'Berlin'] ['Hannes Stein', 'work location', 'Salzburg']
ASK WHERE { resource:Hannes_Stein property:work_location ?x . VALUES ( ?x ) { ( resource:Berlin ) ( resource:Salzburg ) } }
[]
common name
SYSTEM
YES
(Q101723,P937,Q64) (Q101723,P937,Q34713)
action is_in
entity prev_answer
action find
entity Q101723
relation P937
[ANSWER]
['Q101723', 'P937', 'Q64'] ['Q101723', 'P937', 'Q34713']
ASK WHERE { resource:Q101723 property:P937 ?x . VALUES ( ?x ) { ( resource:Q64 ) ( resource:Q34713 ) } }
Yes
action is_in
entity prev_answer
action find
entity Hannes Stein
relation work location
['Hannes Stein', 'work location', 'Berlin'] ['Hannes Stein', 'work location', 'Salzburg']
ASK WHERE { resource:Hannes_Stein property:work_location ?x . VALUES ( ?x ) { ( resource:Berlin ) ( resource:Salzburg ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q153401
P463
Q7210356
USER
What was Communist Party of Germany a member of ?
(Q153401,P463,c(Q7210356))
action filter_type
action find
entity Q153401
relation P463
type Q7210356
['Q153401', 'P463', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q153401 property:P463 ?p . ?p rdf:type ontology:Q7210356 }
Communist Party of Germany
action filter_type
action find
entity Communist Party of Germany
relation member of
type political organization
['Communist Party of Germany', 'member of', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Communist_Party_of_Germany property:member_of ?p . ?p rdf:type ontology:political_organization }
[]
political organization
Q163931
SYSTEM
Comintern
Q163931
(Q153401,P463,c(Q7210356))
action filter_type
action find
entity Q153401
relation P463
type Q7210356
Germany [ANSWER] was Communist Party of Germany a member of
['Q153401', 'P463', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q153401 property:P463 ?p . ?p rdf:type ontology:Q7210356 }
Comintern
Germany Comintern was Communist Party of Germany a member of
Comintern
action filter_type
action find
entity Communist Party of Germany
relation member of
type political organization
['Communist Party of Germany', 'member of', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Communist_Party_of_Germany property:member_of ?p . ?p rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q163931
P1142
Q8425
USER
Which society is the ideology of that political organization ?
(Q163931,P1142,c(Q8425))
action filter_type
action find
entity Q163931
relation P1142
type Q8425
['Q163931', 'P1142', {'concept': 'Q8425'}]
SELECT DISTINCT ?f WHERE { resource:Q163931 property:P1142 ?f . ?f rdf:type ontology:Q8425 }
Comintern
action filter_type
action find
entity Comintern
relation political ideology
type society
['Comintern', 'political ideology', {'concept': 'society'}]
SELECT DISTINCT ?f WHERE { resource:Comintern property:political_ideology ?f . ?f rdf:type ontology:society }
[]
society
Q6186
SYSTEM
communism
Q6186
(Q163931,P1142,c(Q8425))
action filter_type
action find
entity Q163931
relation P1142
type Q8425
[ANSWER] is the ideology of that political organization
['Q163931', 'P1142', {'concept': 'Q8425'}]
SELECT DISTINCT ?f WHERE { resource:Q163931 property:P1142 ?f . ?f rdf:type ontology:Q8425 }
communism
Communism is the ideology of that political organization
communism
action filter_type
action find
entity Comintern
relation political ideology
type society
['Comintern', 'political ideology', {'concept': 'society'}]
SELECT DISTINCT ?f WHERE { resource:Comintern property:political_ideology ?f . ?f rdf:type ontology:society }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q157744 Q163931
P1142
Q8425
USER
And also Communist Party of Indonesia
AND((Q163931,P1142,c(Q8425)), (Q157744,P1142,c(Q8425)))
action filter_type
action intersection
action find
entity Q163931
relation P1142
action find
entity Q157744
relation P1142
type Q8425
{'AND': [['Q163931', 'P1142', {'concept': 'Q8425'}], ['Q157744', 'P1142', {'concept': 'Q8425'}]]}
SELECT DISTINCT ?j WHERE { resource:Q163931 property:P1142 ?j . resource:Q157744 property:P1142 ?j . ?j rdf:type ontology:Q8425 }
Communist Party of Indonesia Comintern
action filter_type
action intersection
action find
entity Comintern
relation political ideology
action find
entity Communist Party of Indonesia
relation political ideology
type society
{'AND': [['Comintern', 'political ideology', {'concept': 'society'}], ['Communist Party of Indonesia', 'political ideology', {'concept': 'society'}]]}
SELECT DISTINCT ?j WHERE { resource:Comintern property:political_ideology ?j . resource:Communist_Party_of_Indonesia property:political_ideology ?j . ?j rdf:type ontology:society }
[]
society
Q6186
SYSTEM
communism
Q6186
AND((Q163931,P1142,c(Q8425)), (Q157744,P1142,c(Q8425)))
action filter_type
action intersection
action find
entity Q163931
relation P1142
action find
entity Q157744
relation P1142
type Q8425
[ANSWER]
{'AND': [['Q163931', 'P1142', {'concept': 'Q8425'}], ['Q157744', 'P1142', {'concept': 'Q8425'}]]}
SELECT DISTINCT ?j WHERE { resource:Q163931 property:P1142 ?j . resource:Q157744 property:P1142 ?j . ?j rdf:type ontology:Q8425 }
communism
communism
action filter_type
action intersection
action find
entity Comintern
relation political ideology
action find
entity Communist Party of Indonesia
relation political ideology
type society
{'AND': [['Comintern', 'political ideology', {'concept': 'society'}], ['Communist Party of Indonesia', 'political ideology', {'concept': 'society'}]]}
SELECT DISTINCT ?j WHERE { resource:Comintern property:political_ideology ?j . resource:Communist_Party_of_Indonesia property:political_ideology ?j . ?j rdf:type ontology:society }
[]