Simple Question (Direct)
Simple Question
Q1729162
P1412
Q34770
USER
Which language can Karel Kadlec understand ?
(Q1729162,P1412,c(Q34770))
action filter_type
action find
entity Q1729162
relation P1412
type Q34770
['Q1729162', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q1729162 property:P1412 ?x }
Karel Kadlec
action filter_type
action find
entity Karel Kadlec
relation languages spoken, written or signed
type language
['Karel Kadlec', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Karel_Kadlec property:languages_spoken,_written_or_signed ?x }
[]
language
Q9056
SYSTEM
Czech
Q9056
(Q1729162,P1412,c(Q34770))
action filter_type
action find
entity Q1729162
relation P1412
type Q34770
Karel Kadlec can understand [ANSWER]
['Q1729162', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q1729162 property:P1412 ?x }
Czech
Karel Kadlec can understand Czech
Czech
action filter_type
action find
entity Karel Kadlec
relation languages spoken, written or signed
type language
['Karel Kadlec', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Karel_Kadlec property:languages_spoken,_written_or_signed ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1729162
P767
Q223393
USER
What did Karel Kadlec contribute to ?
(c(Q223393),P767,Q1729162)
action filter_type
action find_reverse
entity Q1729162
relation P767
type Q223393
[{'concept': 'Q223393'}, 'P767', 'Q1729162']
SELECT DISTINCT ?l WHERE { ?l property:P767 resource:Q1729162 . ?l rdf:type ontology:Q223393 }
Karel Kadlec
action filter_type
action find_reverse
entity Karel Kadlec
relation contributor
type literary genre
[{'concept': 'literary genre'}, 'contributor', 'Karel Kadlec']
SELECT DISTINCT ?l WHERE { ?l property:contributor resource:Karel_Kadlec . ?l rdf:type ontology:literary_genre }
[]
literary genre
Q2041543
SYSTEM
Otto's encyclopedia
Q2041543
(c(Q223393),P767,Q1729162)
action filter_type
action find_reverse
entity Q1729162
relation P767
type Q223393
Karel Kadlec contributed to [ANSWER]
[{'concept': 'Q223393'}, 'P767', 'Q1729162']
SELECT DISTINCT ?l WHERE { ?l property:P767 resource:Q1729162 . ?l rdf:type ontology:Q223393 }
Otto's encyclopedia
Karel Kadlec contributed to Otto's encyclopedia
Otto's encyclopedia
action filter_type
action find_reverse
entity Karel Kadlec
relation contributor
type literary genre
[{'concept': 'literary genre'}, 'contributor', 'Karel Kadlec']
SELECT DISTINCT ?l WHERE { ?l property:contributor resource:Karel_Kadlec . ?l rdf:type ontology:literary_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1729162
P106
Q12737077
USER
What are the job of Karel Kadlec ?
(Q1729162,P106,c(Q12737077))
action filter_type
action find
entity Q1729162
relation P106
type Q12737077
['Q1729162', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q1729162 property:P106 ?f }
Karel Kadlec
action filter_type
action find
entity Karel Kadlec
relation occupation
type occupation
['Karel Kadlec', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Karel_Kadlec property:occupation ?f }
[]
occupation
Q1622272 Q1231865 Q36180
SYSTEM
university teacher, educationist, writer
Q1231865 Q36180 Q2135538 Q1622272
(Q1729162,P106,c(Q12737077))
action filter_type
action find
entity Q1729162
relation P106
type Q12737077
The job of Karel Kadlec are a [ANSWERS]
['Q1729162', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q1729162 property:P106 ?f }
educationist writer legal historian university teacher
The job of Karel Kadlec are a university teacher, educationist and writer
university teacher educationist writer
action filter_type
action find
entity Karel Kadlec
relation occupation
type occupation
['Karel Kadlec', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Karel_Kadlec property:occupation ?f }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5346585
Q12737077
USER
And how about Edwin Kjeldner?
(Q5346585,P106,c(Q12737077))
action filter_type
action find
entity Q5346585
relation P106
type Q12737077
['Q5346585', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5346585 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Edwin Kjeldner
action filter_type
action find
entity Edwin Kjeldner
relation occupation
type occupation
['Edwin Kjeldner', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Edwin_Kjeldner property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5346585,P106,c(Q12737077))
action filter_type
action find
entity Q5346585
relation P106
type Q12737077
[ANSWER]
['Q5346585', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5346585 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
association football player
association football player
action filter_type
action find
entity Edwin Kjeldner
relation occupation
type occupation
['Edwin Kjeldner', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Edwin_Kjeldner property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q937857 Q21170939
P106
Q502895
USER
Does Jean-Pierre Enjalbert have a job as that occupation ?
(Q21170939,P106,Q937857)
action is_in
entity Q21170939
action find
entity Q937857
relation P106
['Q21170939', 'P106', 'Q937857']
ASK WHERE { resource:Q937857 property:P106 resource:Q21170939 }
association football player Jean-Pierre Enjalbert
action is_in
entity Jean-Pierre Enjalbert
action find
entity association football player
relation occupation
['Jean-Pierre Enjalbert', 'occupation', 'association football player']
ASK WHERE { resource:association_football_player property:occupation resource:Jean-Pierre_Enjalbert }
[]
common name
SYSTEM
NO
(Q21170939,P106,Q937857)
action is_in
entity Q21170939
action find
entity Q937857
relation P106
[ANSWER]
['Q21170939', 'P106', 'Q937857']
ASK WHERE { resource:Q937857 property:P106 resource:Q21170939 }
No
action is_in
entity Jean-Pierre Enjalbert
action find
entity association football player
relation occupation
['Jean-Pierre Enjalbert', 'occupation', 'association football player']
ASK WHERE { resource:association_football_player property:occupation resource:Jean-Pierre_Enjalbert }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1231865 Q7922
P425
Q1047113
USER
Is pedagogy associated with the field of occupation educationist ?
(Q1231865,P425,Q7922)
action is_in
entity Q7922
action find
entity Q1231865
relation P425
['Q1231865', 'P425', 'Q7922']
ASK WHERE { resource:Q1231865 property:P425 resource:Q7922 }
educationist pedagogy
action is_in
entity pedagogy
action find
entity educationist
relation field of this occupation
['educationist', 'field of this occupation', 'pedagogy']
ASK WHERE { resource:educationist property:field_of_this_occupation resource:pedagogy }
[]
special field
SYSTEM
YES
(Q1231865,P425,Q7922)
action is_in
entity Q7922
action find
entity Q1231865
relation P425
[ANSWER]
['Q1231865', 'P425', 'Q7922']
ASK WHERE { resource:Q1231865 property:P425 resource:Q7922 }
Yes
action is_in
entity pedagogy
action find
entity educationist
relation field of this occupation
['educationist', 'field of this occupation', 'pedagogy']
ASK WHERE { resource:educationist property:field_of_this_occupation resource:pedagogy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2041543
P407
Q34770
USER
What is the language of Otto's encyclopedia ?
(Q2041543,P407,c(Q34770))
action filter_type
action find
entity Q2041543
relation P407
type Q34770
['Q2041543', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q2041543 property:P407 ?r . ?r rdf:type ontology:Q34770 }
Otto's encyclopedia
action filter_type
action find
entity Otto's encyclopedia
relation language of work or name
type language
["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Otto's_encyclopedia property:language_of_work_or_name ?r . ?r rdf:type ontology:language }
[]
language
Q9056
SYSTEM
Czech
Q9056
(Q2041543,P407,c(Q34770))
action filter_type
action find
entity Q2041543
relation P407
type Q34770
The language of Otto's encyclopedia is [ANSWER]
['Q2041543', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q2041543 property:P407 ?r . ?r rdf:type ontology:Q34770 }
Czech
The language of Otto's encyclopedia is Czech
Czech
action filter_type
action find
entity Otto's encyclopedia
relation language of work or name
type language
["Otto's encyclopedia", 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Otto's_encyclopedia property:language_of_work_or_name ?r . ?r rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q9056 Q3679480 Q145852
P361
Q5962346
USER
Is that language a part of Argonauta-class Italian submarine and West Slavic languages ?
(Q9056,P361,Q3679480) (Q9056,P361,Q145852)
action is_in
entity Q9056
action intersection
action find_reverse
entity Q3679480
relation P361
action find_reverse
entity Q145852
relation P361
['Q9056', 'P361', 'Q3679480'] ['Q9056', 'P361', 'Q145852']
ASK WHERE { resource:Q9056 property:P361 resource:Q3679480 . resource:Q9056 property:P361 resource:Q145852 }
Czech Argonauta-class Italian submarine West Slavic languages
action is_in
entity Czech
action intersection
action find_reverse
entity Argonauta-class Italian submarine
relation part of
action find_reverse
entity West Slavic languages
relation part of
['Czech', 'part of', 'Argonauta-class Italian submarine'] ['Czech', 'part of', 'West Slavic languages']
ASK WHERE { resource:Czech property:part_of resource:Argonauta-class_Italian_submarine . resource:Czech property:part_of resource:West_Slavic_languages }
[]
classification scheme
SYSTEM
NO and YES respectively
(Q9056,P361,Q3679480) (Q9056,P361,Q145852)
action is_in
entity Q9056
action intersection
action find_reverse
entity Q3679480
relation P361
action find_reverse
entity Q145852
relation P361
[ANSWER]
['Q9056', 'P361', 'Q3679480'] ['Q9056', 'P361', 'Q145852']
ASK WHERE { resource:Q9056 property:P361 resource:Q3679480 . resource:Q9056 property:P361 resource:Q145852 }
NO and YES respectively
action is_in
entity Czech
action intersection
action find_reverse
entity Argonauta-class Italian submarine
relation part of
action find_reverse
entity West Slavic languages
relation part of
['Czech', 'part of', 'Argonauta-class Italian submarine'] ['Czech', 'part of', 'West Slavic languages']
ASK WHERE { resource:Czech property:part_of resource:Argonauta-class_Italian_submarine . resource:Czech property:part_of resource:West_Slavic_languages }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q9056 Q15964916
P361
Q5962346
USER
How many classification schemes are Czech or Dutch national tinctures a component of ?
(Q9056,P361,c(Q5962346)) (Q15964916,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q9056
relation P361
type Q5962346
action filter_type
action find
entity Q15964916
relation P361
type Q5962346
['Q9056', 'P361', {'concept': 'Q5962346'}] ['Q15964916', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { VALUES ( ?c ) { ( resource:Q9056 ) ( resource:Q15964916 ) } . ?c property:P361 ?g }
Czech Dutch national tinctures
action count
action union
action filter_type
action find
entity Czech
relation part of
type classification scheme
action filter_type
action find
entity Dutch national tinctures
relation part of
type classification scheme
['Czech', 'part of', {'concept': 'classification scheme'}] ['Dutch national tinctures', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { VALUES ( ?c ) { ( resource:Czech ) ( resource:Dutch_national_tinctures ) } . ?c property:part_of ?g }
[]
classification scheme
SYSTEM
2
Q18336 Q145852
(Q9056,P361,c(Q5962346)) (Q15964916,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q9056
relation P361
type Q5962346
action filter_type
action find
entity Q15964916
relation P361
type Q5962346
[ANSWER]
['Q9056', 'P361', {'concept': 'Q5962346'}] ['Q15964916', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { VALUES ( ?c ) { ( resource:Q9056 ) ( resource:Q15964916 ) } . ?c property:P361 ?g }
heraldry West Slavic languages
2
action count
action union
action filter_type
action find
entity Czech
relation part of
type classification scheme
action filter_type
action find
entity Dutch national tinctures
relation part of
type classification scheme
['Czech', 'part of', {'concept': 'classification scheme'}] ['Dutch national tinctures', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { VALUES ( ?c ) { ( resource:Czech ) ( resource:Dutch_national_tinctures ) } . ?c property:part_of ?g }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q1307214 Q11204 Q12737077
USER
Which occupations did max number of forms of government and legislatures appoint ?
(c(Q12737077),P748,c(Q1307214)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q11204
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1307214 ) ( ontology:Q11204 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?y ) WHERE { { ?c property:P748 ?z . ?c rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q1307214 } UNION { ?c property:P748 ?z . ?z rdf:type ontology:Q11204 . ?c rdf:type ontology:Q12737077 } } GROUP BY ?c } . FILTER ( ?y = ?n ) }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:form_of_government ) ( ontology:legislature ) } } GROUP BY ?b } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?y ) WHERE { { ?c property:appointed_by ?z . ?c rdf:type ontology:occupation . ?z rdf:type ontology:form_of_government } UNION { ?c property:appointed_by ?z . ?z rdf:type ontology:legislature . ?c rdf:type ontology:occupation } } GROUP BY ?c } . FILTER ( ?y = ?n ) }
[]
form of government legislature occupation
Q655407 Q4122271 Q26000995
SYSTEM
President of the People's Republic of China, Premier of the People's Republic of China, President of the Parliament of Catalonia
Q11793630 Q1355456 Q1507619 Q910308 Q1753754 Q943379 Q655407 Q596123 Q583809 Q1043568 Q2962001 Q866680 Q26000995 Q213107 Q4122271 Q162754 Q217217 Q1281611 Q1752225 Q687908
(c(Q12737077),P748,c(Q1307214)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q11204
Max number of forms of government and legislatures appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1307214 ) ( ontology:Q11204 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?y ) WHERE { { ?c property:P748 ?z . ?c rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q1307214 } UNION { ?c property:P748 ?z . ?z rdf:type ontology:Q11204 . ?c rdf:type ontology:Q12737077 } } GROUP BY ?c } . FILTER ( ?y = ?n ) }
governor of national banks of Serbia and Yugoslavia Lord Chamberlain Deputy Prime Minister of the United Kingdom Lord Privy Seal Master of the Rolls Lord President of the Council President of the People's Republic of China president of Bangladesh Solicitor General for England and Wales Prime Minister of Vietnam Chief of the Defence Staff President of Vietnam President of the Parliament of Catalonia Prime Minister of Belgium Premier of the People's Republic of China Chancellor of the Duchy of Lancaster Lord Chancellor Lieutenant Governor of Jersey Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
Max number of forms of government and legislatures appointed by President of the People's Republic of China, Premier of the People's Republic of China and President of the Parliament of Catalonia
President of the People's Republic of China Premier of the People's Republic of China President of the Parliament of Catalonia
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:form_of_government ) ( ontology:legislature ) } } GROUP BY ?b } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?y ) WHERE { { ?c property:appointed_by ?z . ?c rdf:type ontology:occupation . ?z rdf:type ontology:form_of_government } UNION { ?c property:appointed_by ?z . ?z rdf:type ontology:legislature . ?c rdf:type ontology:occupation } } GROUP BY ?c } . FILTER ( ?y = ?n ) }
[]