Simple Question (Direct)
Simple Question
Q1308038
P19
Q618123
USER
Which geographical object is the birthplace of Eric Wright ?
(Q1308038,P19,c(Q618123))
action filter_type
action find
entity Q1308038
relation P19
type Q618123
['Q1308038', 'P19', {'concept': 'Q618123'}]
SELECT DISTINCT ?r WHERE { resource:Q1308038 property:P19 ?r . ?r rdf:type ontology:Q618123 }
Eric Wright
action filter_type
action find
entity Eric Wright
relation place of birth
type geographical object
['Eric Wright', 'place of birth', {'concept': 'geographical object'}]
SELECT DISTINCT ?r WHERE { resource:Eric_Wright property:place_of_birth ?r . ?r rdf:type ontology:geographical_object }
[]
geographical object
Q1394500
SYSTEM
South London
Q1394500
(Q1308038,P19,c(Q618123))
action filter_type
action find
entity Q1308038
relation P19
type Q618123
[ANSWER] is the birthplace of Eric Wright
['Q1308038', 'P19', {'concept': 'Q618123'}]
SELECT DISTINCT ?r WHERE { resource:Q1308038 property:P19 ?r . ?r rdf:type ontology:Q618123 }
South London
South London is the birthplace of Eric Wright
South London
action filter_type
action find
entity Eric Wright
relation place of birth
type geographical object
['Eric Wright', 'place of birth', {'concept': 'geographical object'}]
SELECT DISTINCT ?r WHERE { resource:Eric_Wright property:place_of_birth ?r . ?r rdf:type ontology:geographical_object }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1308038
P106
Q12737077
USER
Which occupations are the professions of Eric Wright ?
(Q1308038,P106,c(Q12737077))
action filter_type
action find
entity Q1308038
relation P106
type Q12737077
['Q1308038', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1308038 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Eric Wright
action filter_type
action find
entity Eric Wright
relation occupation
type occupation
['Eric Wright', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Eric_Wright property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q1622272 Q36180
SYSTEM
university teacher, writer
Q1622272 Q36180
(Q1308038,P106,c(Q12737077))
action filter_type
action find
entity Q1308038
relation P106
type Q12737077
The [ANSWERS] are the professions of Eric Wright
['Q1308038', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1308038 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
university teacher writer
The university teacher and writer are the professions of Eric Wright
university teacher writer
action filter_type
action find
entity Eric Wright
relation occupation
type occupation
['Eric Wright', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Eric_Wright property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1308038
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q1622272,P27,c(Q1048835)) (Q36180,P27,c(Q1048835))
action filter_type
action find
entity Q1308038
relation P27
type Q1048835
['Q1622272', 'P27', {'concept': 'Q1048835'}] ['Q36180', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q1308038 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Eric Wright
action filter_type
action find
entity Eric Wright
relation country of citizenship
type political territorial entity
['university teacher', 'country of citizenship', {'concept': 'political territorial entity'}] ['writer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Eric_Wright property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q1622272,P27,c(Q1048835)) (Q36180,P27,c(Q1048835))
action filter_type
action find
entity Q1308038
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q1622272', 'P27', {'concept': 'Q1048835'}] ['Q36180', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q1308038 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Canada
Canada is that person an inhabitant of
Canada
action filter_type
action find
entity Eric Wright
relation country of citizenship
type political territorial entity
['university teacher', 'country of citizenship', {'concept': 'political territorial entity'}] ['writer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Eric_Wright property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q16 Q4828954
P27
Q502895
USER
Is Avis Gray a citizen of that political territory ?
(Q4828954,P27,Q16)
action is_in
entity Q16
action find
entity Q4828954
relation P27
['Q4828954', 'P27', 'Q16']
ASK WHERE { resource:Q4828954 property:P27 resource:Q16 }
Canada Avis Gray
action is_in
entity Canada
action find
entity Avis Gray
relation country of citizenship
['Avis Gray', 'country of citizenship', 'Canada']
ASK WHERE { resource:Avis_Gray property:country_of_citizenship resource:Canada }
[]
common name
SYSTEM
YES
(Q4828954,P27,Q16)
action is_in
entity Q16
action find
entity Q4828954
relation P27
[ANSWER]
['Q4828954', 'P27', 'Q16']
ASK WHERE { resource:Q4828954 property:P27 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Avis Gray
relation country of citizenship
['Avis Gray', 'country of citizenship', 'Canada']
ASK WHERE { resource:Avis_Gray property:country_of_citizenship resource:Canada }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q82955
P921
Q12737077 Q386724 Q2342494
USER
How many occupations were the main subjects of less number of works or collectables 's work than politician ?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P921 resource:Q82955 . { VALUES ( ?o ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?m rdf:type ?o } } } . FILTER ( ?c < ?e ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?w WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?w } }
politician
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:main_subject resource:politician . { VALUES ( ?o ) { ( ontology:work ) ( ontology:collectable ) } . ?m rdf:type ?o } } } . FILTER ( ?c < ?e ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?w WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?w } }
[]
occupation work collectable
SYSTEM
79
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3809586 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q2094335 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q486839 Q510373 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q152002 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q17143199 Q384593 Q2095549 Q372436 Q182436 Q1674312 Q361593 Q1856798 Q16707842
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P921 resource:Q82955 . { VALUES ( ?o ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?m rdf:type ?o } } } . FILTER ( ?c < ?e ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?w WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?w } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Wikipedian in Residence Prime Minister of Hungary seiyū clown farmer medallist United States Attorney detective racing driver Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier member of parliament Lord High Steward violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist pastor cartoonist judge nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian photographer peasant missionary United States federal judge musician Nomarch medical examiner police officer aviator statesman librarian rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
79
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:main_subject resource:politician . { VALUES ( ?o ) { ( ontology:work ) ( ontology:collectable ) } . ?m rdf:type ?o } } } . FILTER ( ?c < ?e ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?w WHERE { ?d rdf:type ?q . VALUES ( ?q ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?w } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q16746569
P921
Q12737077 Q386724 Q2342494
USER
And how about high school student?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q16746569
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?o WHERE { ?r rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } } GROUP BY ?o } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { ?q property:P921 resource:Q16746569 . { { ?q rdf:type ontology:Q2342494 } UNION { ?q rdf:type ontology:Q386724 } } } } }
high school student
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity high school student
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?o WHERE { ?r rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:work ) } } GROUP BY ?o } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { ?q property:main_subject resource:high_school_student . { { ?q rdf:type ontology:collectable } UNION { ?q rdf:type ontology:work } } } } }
[]
occupation work collectable
SYSTEM
100
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q16746569
relation P921
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?o WHERE { ?r rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } } GROUP BY ?o } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { ?q property:P921 resource:Q16746569 . { { ?q rdf:type ontology:Q2342494 } UNION { ?q rdf:type ontology:Q386724 } } } } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor 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 journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant 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 war correspondent 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 elementary school student comedian photographer 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 middle school student Member of Parliament in the United Kingdom
100
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity high school student
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?o WHERE { ?r rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:work ) } } GROUP BY ?o } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { ?q property:main_subject resource:high_school_student . { { ?q rdf:type ontology:collectable } UNION { ?q rdf:type ontology:work } } } } }
[]