Simple Question (Direct)
Simple Question
Q495792
P19
Q56061
USER
Which administrative territory is the birthplace of Francis Hong Yong-ho ?
(Q495792,P19,c(Q56061))
action filter_type
action find
entity Q495792
relation P19
type Q56061
['Q495792', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q495792 property:P19 ?f }
Francis Hong Yong-ho
action filter_type
action find
entity Francis Hong Yong-ho
relation place of birth
type administrative territorial entity
['Francis Hong Yong-ho', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Francis_Hong_Yong-ho property:place_of_birth ?f }
[]
administrative territorial entity
Q18808
SYSTEM
Pyongyang
Q18808
(Q495792,P19,c(Q56061))
action filter_type
action find
entity Q495792
relation P19
type Q56061
[ANSWER] is the birthplace of Francis Hong Yong-ho
['Q495792', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q495792 property:P19 ?f }
Pyongyang
Pyongyang is the birthplace of Francis Hong Yong-ho
Pyongyang
action filter_type
action find
entity Francis Hong Yong-ho
relation place of birth
type administrative territorial entity
['Francis Hong Yong-ho', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Francis_Hong_Yong-ho property:place_of_birth ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q495792
P39
Q12737077
USER
Which occupation was a position held by Francis Hong Yong-ho ?
(Q495792,P39,c(Q12737077))
action filter_type
action find
entity Q495792
relation P39
type Q12737077
['Q495792', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q495792 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Francis Hong Yong-ho
action filter_type
action find
entity Francis Hong Yong-ho
relation position held
type occupation
['Francis Hong Yong-ho', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Francis_Hong_Yong-ho property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q29182
SYSTEM
bishop
Q29182
(Q495792,P39,c(Q12737077))
action filter_type
action find
entity Q495792
relation P39
type Q12737077
The [ANSWER] was a position held by Francis Hong Yong-ho
['Q495792', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q495792 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
bishop
The bishop was a position held by Francis Hong Yong-ho
bishop
action filter_type
action find
entity Francis Hong Yong-ho
relation position held
type occupation
['Francis Hong Yong-ho', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Francis_Hong_Yong-ho property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6264292
Q12737077
USER
And what about John William Wilson?
(Q6264292,P39,c(Q12737077))
action filter_type
action find
entity Q6264292
relation P39
type Q12737077
['Q6264292', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q6264292 property:P39 ?y }
John William Wilson
action filter_type
action find
entity John William Wilson
relation position held
type occupation
['John William Wilson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:John_William_Wilson property:position_held ?y }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q6264292,P39,c(Q12737077))
action filter_type
action find
entity Q6264292
relation P39
type Q12737077
[ANSWER]
['Q6264292', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q6264292 property:P39 ?y }
Member of Parliament in the United Kingdom
Member of Parliament in the United Kingdom
action filter_type
action find
entity John William Wilson
relation position held
type occupation
['John William Wilson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:John_William_Wilson property:position_held ?y }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q205375
P921
Q12737077 Q732577 Q838948
USER
Which occupations were the main subjects of lesser number of publications or works of art 's work than inventor ?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q205375
relation P921
type Q732577
type Q838948
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:P921 resource:Q205375 . { VALUES ( ?u ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } . ?p rdf:type ?u } } } . FILTER ( ?r < ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?l WHERE { { ?s property:P921 ?l . ?l rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q732577 } UNION { ?l rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q838948 . ?s property:P921 ?l } } GROUP BY ?l } }
inventor
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity inventor
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:main_subject resource:inventor . { VALUES ( ?u ) { ( ontology:publication ) ( ontology:work_of_art ) } . ?p rdf:type ?u } } } . FILTER ( ?r < ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?l WHERE { { ?s property:main_subject ?l . ?l rdf:type ontology:occupation . ?s rdf:type ontology:publication } UNION { ?l rdf:type ontology:occupation . ?s rdf:type ontology:work_of_art . ?s property:main_subject ?l } } GROUP BY ?l } }
[]
occupation publication work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q9045502 Q2666591 Q5185440 Q765778 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q43845 Q14128148 Q814356 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q182436 Q2259532 Q361593 Q1856798 Q16707842
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q205375
relation P921
type Q732577
type Q838948
[ANSWERS] were the main subjects of lesser number of publications or works of art 's work than inventor
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:P921 resource:Q205375 . { VALUES ( ?u ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } . ?p rdf:type ?u } } } . FILTER ( ?r < ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?l WHERE { { ?s property:P921 ?l . ?l rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q732577 } UNION { ?l rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q838948 . ?s property:P921 ?l } } GROUP BY ?l } }
praetor member of the Parliament of Norway Chair of the Federal Reserve Crime scene cleanup organist surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives farmer medallist 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 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 Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly caricaturist painter American football player legal profession composer rabbi völva conductor peasant missionary United States federal judge musician Nomarch poet medical examiner police officer statesman political scientist librarian cleric police officer baseball umpire Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were the main subjects of lesser number of publications or works of art 's work than inventor
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity inventor
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:main_subject resource:inventor . { VALUES ( ?u ) { ( ontology:publication ) ( ontology:work_of_art ) } . ?p rdf:type ?u } } } . FILTER ( ?r < ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?l WHERE { { ?s property:main_subject ?l . ?l rdf:type ontology:occupation . ?s rdf:type ontology:publication } UNION { ?l rdf:type ontology:occupation . ?s rdf:type ontology:work_of_art . ?s property:main_subject ?l } } GROUP BY ?l } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1124183
P921
Q12737077 Q732577 Q838948
USER
And how about lumberjack?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1124183
relation P921
type Q732577
type Q838948
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?p ) WHERE { VALUES ( ?x ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?c rdf:type ?x } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } . ?d property:P921 resource:Q1124183 } } . FILTER ( ?p < ?f ) }
lumberjack
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity lumberjack
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?p ) WHERE { VALUES ( ?x ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?c rdf:type ?x } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:publication ) ( ontology:work_of_art ) } } . ?d property:main_subject resource:lumberjack } } . FILTER ( ?p < ?f ) }
[]
occupation publication work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q9045502 Q2666591 Q5185440 Q765778 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q43845 Q14128148 Q814356 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q182436 Q2259532 Q361593 Q1856798 Q16707842
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1124183
relation P921
type Q732577
type Q838948
[ANSWERS]
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?p ) WHERE { VALUES ( ?x ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?c rdf:type ?x } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } . ?d property:P921 resource:Q1124183 } } . FILTER ( ?p < ?f ) }
praetor member of the Parliament of Norway Chair of the Federal Reserve Crime scene cleanup organist surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives farmer medallist 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 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 Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly caricaturist painter American football player legal profession composer rabbi völva conductor peasant missionary United States federal judge musician Nomarch poet medical examiner police officer statesman political scientist librarian cleric police officer baseball umpire Member of Parliament in the United Kingdom
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity lumberjack
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?p ) WHERE { VALUES ( ?x ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?c rdf:type ?x } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:publication ) ( ontology:work_of_art ) } } . ?d property:main_subject resource:lumberjack } } . FILTER ( ?p < ?f ) }
[]