Simple Question (Direct)
Simple Question
Q6289383
P21
Q290
USER
Which sex does Josh Singer have ?
(Q6289383,P21,c(Q290))
action filter_type
action find
entity Q6289383
relation P21
type Q290
['Q6289383', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q6289383 property:P21 ?e . ?e rdf:type ontology:Q290 }
Josh Singer
action filter_type
action find
entity Josh Singer
relation gender
type sex
['Josh Singer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Josh_Singer property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6289383,P21,c(Q290))
action filter_type
action find
entity Q6289383
relation P21
type Q290
Josh Singer has a [ANSWER]
['Q6289383', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q6289383 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Josh Singer has a male
male
action filter_type
action find
entity Josh Singer
relation gender
type sex
['Josh Singer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Josh_Singer property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6289383
P26
Q502895
USER
Who is married to Josh Singer ?
(c(Q502895),P26,Q6289383)
action filter_type
action find
entity Q6289383
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6289383']
SELECT DISTINCT ?r WHERE { resource:Q6289383 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Josh Singer
action filter_type
action find
entity Josh Singer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Josh Singer']
SELECT DISTINCT ?r WHERE { resource:Josh_Singer property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q6498838
SYSTEM
Laura Dave
Q6498838
(c(Q502895),P26,Q6289383)
action filter_type
action find
entity Q6289383
relation P26
type Q502895
[ANSWER] is married to Josh Singer
[{'concept': 'Q502895'}, 'P26', 'Q6289383']
SELECT DISTINCT ?r WHERE { resource:Q6289383 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Laura Dave
Laura Dave is married to Josh Singer
Laura Dave
action filter_type
action find
entity Josh Singer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Josh Singer']
SELECT DISTINCT ?r WHERE { resource:Josh_Singer property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6498838
P69
Q3918
USER
Which university is that person an alumni of ?
(Q6498838,P69,c(Q3918))
action filter_type
action find
entity Q6498838
relation P69
type Q3918
['Q6498838', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q6498838 property:P69 ?h . ?h rdf:type ontology:Q3918 }
Laura Dave
action filter_type
action find
entity Laura Dave
relation educated at
type university
['Laura Dave', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:Laura_Dave property:educated_at ?h . ?h rdf:type ontology:university }
[]
university
Q213439
SYSTEM
University of Virginia
Q213439
(Q6498838,P69,c(Q3918))
action filter_type
action find
entity Q6498838
relation P69
type Q3918
[ANSWER] is that person an alumni of
['Q6498838', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?h WHERE { resource:Q6498838 property:P69 ?h . ?h rdf:type ontology:Q3918 }
University of Virginia
University of Virginia is that person an alumni of
University of Virginia
action filter_type
action find
entity Laura Dave
relation educated at
type university
['Laura Dave', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?h WHERE { resource:Laura_Dave property:educated_at ?h . ?h rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6498838
P106
Q12737077
USER
Which occupation has Laura Dave as his/her 's career ?
(Q6498838,P106,c(Q12737077))
action filter_type
action find
entity Q6498838
relation P106
type Q12737077
['Q6498838', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q6498838 property:P106 ?x }
Laura Dave
action filter_type
action find
entity Laura Dave
relation occupation
type occupation
['Laura Dave', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Laura_Dave property:occupation ?x }
[]
occupation
Q6625963
SYSTEM
novelist
Q6625963
(Q6498838,P106,c(Q12737077))
action filter_type
action find
entity Q6498838
relation P106
type Q12737077
The [ANSWER] has Laura Dave as his/her 's career
['Q6498838', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q6498838 property:P106 ?x }
novelist
The novelist has Laura Dave as his/her 's career
novelist
action filter_type
action find
entity Laura Dave
relation occupation
type occupation
['Laura Dave', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Laura_Dave property:occupation ?x }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q2342494 Q43229
USER
Which occupations do approximately the same number of collectables and organizations belong to as that occupation ?
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q6625963
relation P101
type Q2342494
type Q43229
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } . ?k rdf:type ?r } . ?k property:P101 resource:Q6625963 } } . FILTER ( ?i = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } } GROUP BY ?e } }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action count
action filter_multi_types
action find_reverse
entity novelist
relation field of work
type collectable
type organization
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:organization ) } . ?k rdf:type ?r } . ?k property:field_of_work resource:novelist } } . FILTER ( ?i = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:collectable ) ( ontology:organization ) } } GROUP BY ?e } }
[]
occupation collectable organization
Q2855502 Q3621491 Q1051088
SYSTEM
chief of police, archaeologist, Commissioner of Baseball
Q6625963 Q4175034 Q177220 Q911554 Q80687 Q37226 Q39631 Q652122 Q765778 Q2995983 Q627325 Q33999 Q1288557 Q14915627 Q13418253 Q1495660 Q774306 Q4853732 Q706364 Q1231865 Q622807 Q584301 Q6138343 Q4610556 Q1259917 Q17156912 Q2516866 Q2259451 Q947873 Q333634 Q15949613 Q783906 Q1792450 Q11900058 Q3243461 Q5482740 Q3922505 Q1051088 Q138858 Q183888 Q593644 Q7888586 Q81096 Q170790 Q30185 Q15839135 Q2405480 Q1930187 Q14467526 Q6500773 Q212238 Q11642 Q937857 Q157509 Q128124 Q1999841 Q131524 Q1172458 Q2505739 Q1622272 Q653368 Q3455803 Q2707485 Q1402561 Q725440 Q2374149 Q17277248 Q2865798 Q326358 Q2599593 Q705908 Q4164507 Q2205972 Q899758 Q2855502 Q169470 Q36180 Q201788 Q15117302 Q483501 Q1114448 Q17167049 Q1423891 Q3665646 Q11063 Q1028181 Q1392297 Q901 Q1881523 Q18524075 Q1235146 Q36834 Q15995642 Q254651 Q3387717 Q354034 Q158852 Q2252262 Q245068 Q8011071 Q219477 Q16009483 Q1607826 Q154549 Q1709010 Q639669 Q191633 Q33231 Q2490358 Q644687 Q2732142 Q15980158 Q42603 Q3621491 Q11774891 Q6981670
(c(Q2342494)|c(Q43229),P101,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q6625963
relation P101
type Q2342494
type Q43229
The [ANSWERS] approximately the same number of collectables and organizations belong to as that occupation
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } . ?k rdf:type ?r } . ?k property:P101 resource:Q6625963 } } . FILTER ( ?i = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } } GROUP BY ?e } }
novelist legislator singer business magnate secretary teacher physician sewing organist double-bassist graphic designer actor hieromonk musicologist philologist food critic surgeon children's writer art director educationist seiyū bassist wood carver model violinist malariologist publisher stage actor television presenter translator short story writer neurologist art historian explorer collector programmer music producer Commissioner of Baseball entertainer software developer chemist chemical engineer engineer mathematician mayor developmental biologist voice actor journalist linguist general practitioner civil servant pottery association football player legal guardian audio engineer faqih entrepreneur muhaddith hispanist university teacher district attorney director scenographer military leader prelate botanist member of the National Assembly of Armenia glass artist joiner germanist agency agreement art critic stained-glass artist violist chief of police physicist writer historian volleyball player artist cartoonist specialist in literature minister basketball player astronomer painter Train dispatcher scientist STEM fields mining engineer documentary filmmaker composer religious leader navigator theatre director type designer conductor rapper comedian animal trainer missionary sideshow performer editor carpenter software engineer musician mangaka photographer choreographer illustrator statistician non-fiction writer priest archaeologist ice hockey player Navajo weaving
The chief of police, archaeologist and Commissioner of Baseball approximately the same number of collectables and organizations belong to as that occupation
chief of police archaeologist Commissioner of Baseball
action approx
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action find_reverse_tuple_counts
relation field of work
type occupation
type organization
action count
action filter_multi_types
action find_reverse
entity novelist
relation field of work
type collectable
type organization
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:organization ) } . ?k rdf:type ?r } . ?k property:field_of_work resource:novelist } } . FILTER ( ?i = ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:collectable ) ( ontology:organization ) } } GROUP BY ?e } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18922410
P40
Q502895
USER
Which person has John Hastings as an offspring ?
(c(Q502895),P40,Q18922410)
action filter_type
action find_reverse
entity Q18922410
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q18922410']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q18922410 . ?b rdf:type ontology:Q502895 }
John Hastings
action filter_type
action find_reverse
entity John Hastings
relation child
type common name
[{'concept': 'common name'}, 'child', 'John Hastings']
SELECT DISTINCT ?b WHERE { ?b property:child resource:John_Hastings . ?b rdf:type ontology:common_name }
[]
common name
Q19325395
SYSTEM
John Hastings
Q19325395
(c(Q502895),P40,Q18922410)
action filter_type
action find_reverse
entity Q18922410
relation P40
type Q502895
[ANSWER] has [ANSWER] as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q18922410']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q18922410 . ?b rdf:type ontology:Q502895 }
John Hastings
John Hastings has John Hastings as an offspring
John Hastings
action filter_type
action find_reverse
entity John Hastings
relation child
type common name
[{'concept': 'common name'}, 'child', 'John Hastings']
SELECT DISTINCT ?b WHERE { ?b property:child resource:John_Hastings . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18922410
P27
Q7275
USER
Which state is the native country of John Hastings ?
(Q18922410,P27,c(Q7275))
action filter_type
action find
entity Q18922410
relation P27
type Q7275
['Q18922410', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?g WHERE { resource:Q18922410 property:P27 ?g . ?g rdf:type ontology:Q7275 }
John Hastings
action filter_type
action find
entity John Hastings
relation country of citizenship
type state
['John Hastings', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?g WHERE { resource:John_Hastings property:country_of_citizenship ?g . ?g rdf:type ontology:state }
[]
state
Q174193
SYSTEM
United Kingdom of Great Britain and Ireland
Q174193
(Q18922410,P27,c(Q7275))
action filter_type
action find
entity Q18922410
relation P27
type Q7275
[ANSWER] is the native country of John Hastings
['Q18922410', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?g WHERE { resource:Q18922410 property:P27 ?g . ?g rdf:type ontology:Q7275 }
United Kingdom of Great Britain and Ireland
United Kingdom of Great Britain and Ireland is the native country of John Hastings
United Kingdom of Great Britain and Ireland
action filter_type
action find
entity John Hastings
relation country of citizenship
type state
['John Hastings', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?g WHERE { resource:John_Hastings property:country_of_citizenship ?g . ?g rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q174193
P1376
Q56061
USER
Which administrative territory is the county seat of that state ?
(c(Q56061),P1376,Q174193)
action filter_type
action find_reverse
entity Q174193
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q174193']
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q174193 . ?q rdf:type ontology:Q56061 }
United Kingdom of Great Britain and Ireland
action filter_type
action find_reverse
entity United Kingdom of Great Britain and Ireland
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'United Kingdom of Great Britain and Ireland']
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:United_Kingdom_of_Great_Britain_and_Ireland . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(c(Q56061),P1376,Q174193)
action filter_type
action find_reverse
entity Q174193
relation P1376
type Q56061
[ANSWER] is the county seat of that state
[{'concept': 'Q56061'}, 'P1376', 'Q174193']
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q174193 . ?q rdf:type ontology:Q56061 }
London
London is the county seat of that state
London
action filter_type
action find_reverse
entity United Kingdom of Great Britain and Ireland
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'United Kingdom of Great Britain and Ireland']
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:United_Kingdom_of_Great_Britain_and_Ireland . ?q rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q14128148
P921
Q12737077 Q2342494 Q191067
USER
Which occupations were the main subjects in the work approximately the same number of collectables or articles as gridiron football player ?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q14128148
relation P921
type Q2342494
type Q191067
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:P921 resource:Q14128148 . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } . FILTER ( ?a = ?l ) }
gridiron football player
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity gridiron football player
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:article ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:main_subject resource:gridiron_football_player . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:collectable ) ( ontology:article ) } } } } . FILTER ( ?a = ?l ) }
[]
occupation collectable article
Q131512 Q16707842 Q9045502
SYSTEM
farmer, Member of Parliament in the United Kingdom, member of the Parliament of Norway
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 Q1058375 Q16556694 Q4991371 Q486839 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q17143199 Q384593 Q2095549 Q372436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q14128148
relation P921
type Q2342494
type Q191067
[ANSWERS] were the main subjects in the work approximately the same number of collectables or articles as gridiron football player
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:P921 resource:Q14128148 . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } . FILTER ( ?a = ?l ) }
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 double agent member of the Lok Sabha soldier member of parliament 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 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 medical examiner police officer aviator statesman rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Farmer, Member of Parliament in the United Kingdom and member of the Parliament of Norway were the main subjects in the work approximately the same number of collectables or articles as gridiron football player
farmer Member of Parliament in the United Kingdom member of the Parliament of Norway
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity gridiron football player
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:article ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:main_subject resource:gridiron_football_player . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:collectable ) ( ontology:article ) } } } } . FILTER ( ?a = ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q15320003
P921
Q12737077 Q2342494 Q191067
USER
And what about migrant worker?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q15320003
relation P921
type Q2342494
type Q191067
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:P921 ?b . ?b rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q2342494 } UNION { ?w rdf:type ontology:Q191067 . ?b rdf:type ontology:Q12737077 . ?w property:P921 ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:P921 resource:Q15320003 . { { ?h rdf:type ontology:Q191067 } UNION { ?h rdf:type ontology:Q2342494 } } } } . FILTER ( ?k = ?s ) }
migrant worker
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity migrant worker
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:main_subject ?b . ?b rdf:type ontology:occupation . ?w rdf:type ontology:collectable } UNION { ?w rdf:type ontology:article . ?b rdf:type ontology:occupation . ?w property:main_subject ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:main_subject resource:migrant_worker . { { ?h rdf:type ontology:article } UNION { ?h rdf:type ontology:collectable } } } } . FILTER ( ?k = ?s ) }
[]
occupation collectable article
Q131512 Q16707842 Q9045502
SYSTEM
farmer, Member of Parliament in the United Kingdom, member of the Parliament of Norway
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 Q1058375 Q16556694 Q4991371 Q486839 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q17143199 Q384593 Q2095549 Q372436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q15320003
relation P921
type Q2342494
type Q191067
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:P921 ?b . ?b rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q2342494 } UNION { ?w rdf:type ontology:Q191067 . ?b rdf:type ontology:Q12737077 . ?w property:P921 ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:P921 resource:Q15320003 . { { ?h rdf:type ontology:Q191067 } UNION { ?h rdf:type ontology:Q2342494 } } } } . FILTER ( ?k = ?s ) }
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 double agent member of the Lok Sabha soldier member of parliament 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 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 medical examiner police officer aviator statesman rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
farmer Member of Parliament in the United Kingdom member of the Parliament of Norway
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity migrant worker
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:main_subject ?b . ?b rdf:type ontology:occupation . ?w rdf:type ontology:collectable } UNION { ?w rdf:type ontology:article . ?b rdf:type ontology:occupation . ?w property:main_subject ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h property:main_subject resource:migrant_worker . { { ?h rdf:type ontology:article } UNION { ?h rdf:type ontology:collectable } } } } . FILTER ( ?k = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q131512
P180
Q838948 Q11060274
USER
How many works of art and prints express farmer ?
(c(Q838948),P180,Q131512) (c(Q11060274),P180,Q131512)
action count
action union
action filter_type
action find_reverse
entity Q131512
relation P180
type Q838948
action filter_type
action find_reverse
entity Q131512
relation P180
type Q11060274
[{'concept': 'Q838948'}, 'P180', 'Q131512'] [{'concept': 'Q11060274'}, 'P180', 'Q131512']
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } . ?r rdf:type ?o }
farmer
action count
action union
action filter_type
action find_reverse
entity farmer
relation depicts
type work of art
action filter_type
action find_reverse
entity farmer
relation depicts
type print
[{'concept': 'work of art'}, 'depicts', 'farmer'] [{'concept': 'print'}, 'depicts', 'farmer']
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:print ) } . ?r rdf:type ?o }
[]
work of art print
SYSTEM
1 works of art and 1 prints
Q19259503 Q22661827
(c(Q838948),P180,Q131512) (c(Q11060274),P180,Q131512)
action count
action union
action filter_type
action find_reverse
entity Q131512
relation P180
type Q838948
action filter_type
action find_reverse
entity Q131512
relation P180
type Q11060274
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q131512'] [{'concept': 'Q11060274'}, 'P180', 'Q131512']
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } . ?r rdf:type ?o }
Plowing scene model Return from the Fields
1 works of art and 1 prints
action count
action union
action filter_type
action find_reverse
entity farmer
relation depicts
type work of art
action filter_type
action find_reverse
entity farmer
relation depicts
type print
[{'concept': 'work of art'}, 'depicts', 'farmer'] [{'concept': 'print'}, 'depicts', 'farmer']
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:print ) } . ?r rdf:type ?o }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18972746 Q174193
P276 P36
Q56061
USER
Which administrative territories are the capitals of United Kingdom of Great Britain and Ireland or are Broekemastraat situated ?
OR((Q174193,P36,c(Q56061)), (Q18972746,P276,c(Q56061)))
action filter_type
action union
action find
entity Q174193
relation P36
action find
entity Q18972746
relation P276
type Q56061
{'OR': [['Q174193', 'P36', {'concept': 'Q56061'}], ['Q18972746', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q174193 property:P36 ?m } UNION { resource:Q18972746 property:P276 ?m } } . ?m rdf:type ontology:Q56061 }
Broekemastraat United Kingdom of Great Britain and Ireland
action filter_type
action union
action find
entity United Kingdom of Great Britain and Ireland
relation capital
action find
entity Broekemastraat
relation location
type administrative territorial entity
{'OR': [['United Kingdom of Great Britain and Ireland', 'capital', {'concept': 'administrative territorial entity'}], ['Broekemastraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:United_Kingdom_of_Great_Britain_and_Ireland property:capital ?m } UNION { resource:Broekemastraat property:location ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q545457 Q84
SYSTEM
Nieuw-Vennep, London
Q545457 Q84
OR((Q174193,P36,c(Q56061)), (Q18972746,P276,c(Q56061)))
action filter_type
action union
action find
entity Q174193
relation P36
action find
entity Q18972746
relation P276
type Q56061
[ANSWERS] are the capitals of United Kingdom of Great Britain and Ireland or are Broekemastraat situated
{'OR': [['Q174193', 'P36', {'concept': 'Q56061'}], ['Q18972746', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q174193 property:P36 ?m } UNION { resource:Q18972746 property:P276 ?m } } . ?m rdf:type ontology:Q56061 }
Nieuw-Vennep London
Nieuw-Vennep and London are the capitals of United Kingdom of Great Britain and Ireland or are Broekemastraat situated
Nieuw-Vennep London
action filter_type
action union
action find
entity United Kingdom of Great Britain and Ireland
relation capital
action find
entity Broekemastraat
relation location
type administrative territorial entity
{'OR': [['United Kingdom of Great Britain and Ireland', 'capital', {'concept': 'administrative territorial entity'}], ['Broekemastraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:United_Kingdom_of_Great_Britain_and_Ireland property:capital ?m } UNION { resource:Broekemastraat property:location ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that administrative territory located in ?
(Q545457,P17,c(Q15617994))
['Q545457', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q545457 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Nieuw-Vennep', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Nieuw-Vennep property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q545457
SYSTEM
Did you mean Nieuw-Vennep ?
(Q545457,P17,c(Q15617994)) (Q84,P17,c(Q15617994))
[ANSWER]
['Q545457', 'P17', {'concept': 'Q15617994'}] ['Q84', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q545457 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Nieuw-Vennep ?
Nieuw-Vennep
['Nieuw-Vennep', 'country', {'concept': 'designation for an administrative territorial entity'}] ['London', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Nieuw-Vennep property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q545457,P17,c(Q15617994))
['Q545457', 'P17', {'concept': 'Q15617994'}]
['Nieuw-Vennep', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q55
(Q545457,P17,c(Q15617994))
[ANSWER]
['Q545457', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q545457 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Netherlands
1
['Nieuw-Vennep', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Nieuw-Vennep property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q131512
P39
Q502895
USER
Which person was responsible for occupying the position of farmer ?
(c(Q502895),P39,Q131512)
action filter_type
action find_reverse
entity Q131512
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q131512']
SELECT DISTINCT ?h WHERE { ?h property:P39 resource:Q131512 . ?h rdf:type ontology:Q502895 }
farmer
action filter_type
action find_reverse
entity farmer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'farmer']
SELECT DISTINCT ?h WHERE { ?h property:position_held resource:farmer . ?h rdf:type ontology:common_name }
[]
common name
Q6245628
SYSTEM
John Lyon-Dalberg-Acton, 5th Baron Acton
Q6245628
(c(Q502895),P39,Q131512)
action filter_type
action find_reverse
entity Q131512
relation P39
type Q502895
And [ANSWER] was responsible for occupying the position of farmer
[{'concept': 'Q502895'}, 'P39', 'Q131512']
SELECT DISTINCT ?h WHERE { ?h property:P39 resource:Q131512 . ?h rdf:type ontology:Q502895 }
John Lyon-Dalberg-Acton, 5th Baron Acton
And John Lyon-Dalberg-Acton, 5th Baron Acton was responsible for occupying the position of farmer
John Lyon-Dalberg-Acton, 5th Baron Acton
action filter_type
action find_reverse
entity farmer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'farmer']
SELECT DISTINCT ?h WHERE { ?h property:position_held resource:farmer . ?h rdf:type ontology:common_name }
[]