Simple Question (Direct)
Simple Question
Q4351633
P641
Q349
USER
Which sport did Aleksandr Perov participate in ?
(Q4351633,P641,c(Q349))
action filter_type
action find
entity Q4351633
relation P641
type Q349
['Q4351633', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q4351633 property:P641 ?f . ?f rdf:type ontology:Q349 }
Aleksandr Perov
action filter_type
action find
entity Aleksandr Perov
relation sport
type sport
['Aleksandr Perov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Aleksandr_Perov property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4351633,P641,c(Q349))
action filter_type
action find
entity Q4351633
relation P641
type Q349
Aleksandr Perov participated in [ANSWER]
['Q4351633', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q4351633 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
Aleksandr Perov participated in association football
association football
action filter_type
action find
entity Aleksandr Perov
relation sport
type sport
['Aleksandr Perov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Aleksandr_Perov property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4351633
P106
Q12737077
USER
Which occupation is the profession of Aleksandr Perov ?
(Q4351633,P106,c(Q12737077))
action filter_type
action find
entity Q4351633
relation P106
type Q12737077
['Q4351633', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4351633 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Aleksandr Perov
action filter_type
action find
entity Aleksandr Perov
relation occupation
type occupation
['Aleksandr Perov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Aleksandr_Perov property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4351633,P106,c(Q12737077))
action filter_type
action find
entity Q4351633
relation P106
type Q12737077
Player [ANSWER] is the profession of Aleksandr Perov
['Q4351633', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4351633 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Aleksandr Perov
association football player
action filter_type
action find
entity Aleksandr Perov
relation occupation
type occupation
['Aleksandr Perov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Aleksandr_Perov property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P361
Q847017
USER
What is that occupation a portion of ?
(Q937857,P361,c(Q847017))
action filter_type
action find
entity Q937857
relation P361
type Q847017
['Q937857', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?u WHERE { resource:Q937857 property:P361 ?u . ?u rdf:type ontology:Q847017 }
association football player
action filter_type
action find
entity association football player
relation part of
type sports club
['association football player', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?u WHERE { resource:association_football_player property:part_of ?u . ?u rdf:type ontology:sports_club }
[]
sports club
Q476028
SYSTEM
association football club
Q476028
(Q937857,P361,c(Q847017))
action filter_type
action find
entity Q937857
relation P361
type Q847017
That occupation a portion of is an [ANSWER]
['Q937857', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?u WHERE { resource:Q937857 property:P361 ?u . ?u rdf:type ontology:Q847017 }
association football club
That occupation a portion of is an association football club
association football club
action filter_type
action find
entity association football player
relation part of
type sports club
['association football player', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?u WHERE { resource:association_football_player property:part_of ?u . ?u rdf:type ontology:sports_club }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q178706 Q11204 Q12737077
USER
Which occupations are appointed by approximately 1 institutions or legislatures ?
(c(Q12737077),P748,c(Q178706)|c(Q11204))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?u ) WHERE { { ?g rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q178706 . ?g property:P748 ?b } UNION { ?g property:P748 ?b . ?b rdf:type ontology:Q11204 . ?g rdf:type ontology:Q12737077 } } GROUP BY ?g } . FILTER ( ?u = 1 ) }
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?u ) WHERE { { ?g rdf:type ontology:occupation . ?b rdf:type ontology:institution . ?g property:appointed_by ?b } UNION { ?g property:appointed_by ?b . ?b rdf:type ontology:legislature . ?g rdf:type ontology:occupation } } GROUP BY ?g } . FILTER ( ?u = 1 ) }
[]
institution legislature occupation
Q655407 Q81066 Q4122271
SYSTEM
President of the People's Republic of China, United Nations Secretary-General, Premier of the People's Republic of China
Q11793630 Q740126 Q655407 Q1161813 Q596123 Q1043568 Q8882 Q866680 Q26000995 Q4122271 Q634291 Q735587 Q81066
(c(Q12737077),P748,c(Q178706)|c(Q11204))
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
The [ANSWERS] are appointed by approximately 1 institutions or legislatures
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?u ) WHERE { { ?g rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q178706 . ?g property:P748 ?b } UNION { ?g property:P748 ?b . ?b rdf:type ontology:Q11204 . ?g rdf:type ontology:Q12737077 } } GROUP BY ?g } . FILTER ( ?u = 1 ) }
governor of national banks of Serbia and Yugoslavia President of the European Parliament President of the People's Republic of China President of the United Nations General Assembly president of Bangladesh Prime Minister of Vietnam President of the European Commission President of Vietnam President of the Parliament of Catalonia Premier of the People's Republic of China High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General
The President of the People's Republic of China, United Nations Secretary-General and Premier of the People's Republic of China are appointed by approximately 1 institutions or legislatures
President of the People's Republic of China United Nations Secretary-General Premier of the People's Republic of China
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?u ) WHERE { { ?g rdf:type ontology:occupation . ?b rdf:type ontology:institution . ?g property:appointed_by ?b } UNION { ?g property:appointed_by ?b . ?b rdf:type ontology:legislature . ?g rdf:type ontology:occupation } } GROUP BY ?g } . FILTER ( ?u = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16095785 Q476028
P641
Q349
USER
Which sports were association football club or Fritz Naef a part of ?
OR((Q476028,P641,c(Q349)), (Q16095785,P641,c(Q349)))
action filter_type
action union
action find
entity Q476028
relation P641
action find
entity Q16095785
relation P641
type Q349
{'OR': [['Q476028', 'P641', {'concept': 'Q349'}], ['Q16095785', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?y WHERE { { ?z property:P641 ?y . VALUES ( ?z ) { ( resource:Q476028 ) ( resource:Q16095785 ) } } . ?y rdf:type ontology:Q349 }
Fritz Naef association football club
action filter_type
action union
action find
entity association football club
relation sport
action find
entity Fritz Naef
relation sport
type sport
{'OR': [['association football club', 'sport', {'concept': 'sport'}], ['Fritz Naef', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?y WHERE { { ?z property:sport ?y . VALUES ( ?z ) { ( resource:association_football_club ) ( resource:Fritz_Naef ) } } . ?y rdf:type ontology:sport }
[]
sport
Q41466 Q2736
SYSTEM
ice hockey, association football
Q41466 Q2736
OR((Q476028,P641,c(Q349)), (Q16095785,P641,c(Q349)))
action filter_type
action union
action find
entity Q476028
relation P641
action find
entity Q16095785
relation P641
type Q349
And [ANSWERS] were association football club or Fritz Naef a part of
{'OR': [['Q476028', 'P641', {'concept': 'Q349'}], ['Q16095785', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?y WHERE { { ?z property:P641 ?y . VALUES ( ?z ) { ( resource:Q476028 ) ( resource:Q16095785 ) } } . ?y rdf:type ontology:Q349 }
ice hockey association football
And ice hockey and association football were association football club or Fritz Naef a part of
ice hockey association football
action filter_type
action union
action find
entity association football club
relation sport
action find
entity Fritz Naef
relation sport
type sport
{'OR': [['association football club', 'sport', {'concept': 'sport'}], ['Fritz Naef', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?y WHERE { { ?z property:sport ?y . VALUES ( ?z ) { ( resource:association_football_club ) ( resource:Fritz_Naef ) } } . ?y rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16095785
P54
Q12973014
USER
Which sports teams are that person a member of ?
(Q41466,P54,c(Q12973014)) (Q2736,P54,c(Q12973014))
action filter_type
action find
entity Q16095785
relation P54
type Q12973014
['Q41466', 'P54', {'concept': 'Q12973014'}] ['Q2736', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { resource:Q16095785 property:P54 ?w . ?w rdf:type ontology:Q12973014 }
Fritz Naef
action filter_type
action find
entity Fritz Naef
relation member of sports team
type sports team
['ice hockey', 'member of sports team', {'concept': 'sports team'}] ['association football', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { resource:Fritz_Naef property:member_of_sports_team ?w . ?w rdf:type ontology:sports_team }
[]
sports team
Q688882 Q675245 Q36921
SYSTEM
Genève-Servette HC, Lausanne HC, HC Davos
Q688882 Q675245 Q36921
(Q41466,P54,c(Q12973014)) (Q2736,P54,c(Q12973014))
action filter_type
action find
entity Q16095785
relation P54
type Q12973014
[ANSWERS] are that person a member of
['Q41466', 'P54', {'concept': 'Q12973014'}] ['Q2736', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { resource:Q16095785 property:P54 ?w . ?w rdf:type ontology:Q12973014 }
Genève-Servette HC Lausanne HC HC Davos
Genève-Servette HC, Lausanne HC and HC Davos are that person a member of
Genève-Servette HC Lausanne HC HC Davos
action filter_type
action find
entity Fritz Naef
relation member of sports team
type sports team
['ice hockey', 'member of sports team', {'concept': 'sports team'}] ['association football', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { resource:Fritz_Naef property:member_of_sports_team ?w . ?w rdf:type ontology:sports_team }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2215841
P641
Q349 Q12973014
USER
Which sports did less number of sports teams participate in than cycle sport ?
(c(Q12973014),P641,c(Q349))
action less
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action count
action filter_type
action find_reverse
entity Q2215841
relation P641
type Q12973014
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P641 ?w . ?w rdf:type ontology:Q349 . ?y rdf:type ontology:Q12973014 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q12973014 . ?z property:P641 resource:Q2215841 } } . FILTER ( ?q < ?e ) }
cycle sport
action less
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action count
action filter_type
action find_reverse
entity cycle sport
relation sport
type sports team
[{'concept': 'sports team'}, 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:sport ?w . ?w rdf:type ontology:sport . ?y rdf:type ontology:sports_team } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:sports_team . ?z property:sport resource:cycle_sport } } . FILTER ( ?q < ?e ) }
[]
sport sports team
Q809831 Q1295867 Q206763
SYSTEM
BASE jumping, pesäpallo, floorball
Q1109032 Q4543 Q170737 Q114466 Q12100 Q500050 Q2348250 Q3337306 Q193387 Q108429 Q171038 Q191051 Q17163326 Q4808504 Q3844480 Q809831 Q1575010 Q206763 Q133201 Q244700 Q1497658 Q902378 Q1761866 Q192832 Q1148620 Q601972 Q46241 Q83462 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q11420 Q338208 Q738622 Q148636 Q2887217 Q7856 Q599204 Q5377 Q206989 Q690676 Q31897 Q74542 Q1050588 Q1758324 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q42486 Q1295867 Q2483334 Q2922870 Q1143202 Q850256 Q204632 Q627165 Q393808 Q213796 Q1866478 Q182570 Q2302906 Q989473 Q1194269 Q2497700 Q231200 Q990637 Q105674 Q215862 Q212845 Q1358545 Q1757181 Q1145338 Q2250158 Q212434 Q43450 Q6034982 Q12834857 Q61065 Q2284014 Q221635 Q4429020 Q2413978 Q13108218 Q4851143 Q14300548 Q36908 Q1081491 Q483693 Q389654 Q61465 Q185851 Q4245261 Q624161 Q327742 Q213711 Q271277 Q3177899 Q376040 Q4347112 Q5465793 Q3930 Q797108 Q963312 Q2167372 Q130949 Q2360406 Q20856109 Q16996906 Q213934 Q1078835 Q838781 Q26787631 Q1899731 Q201965 Q943526 Q647559 Q1541373 Q606060 Q1150656 Q1063445 Q134211 Q31920 Q6140386 Q3325635 Q207703 Q2701632 Q1875777 Q1358925 Q667692 Q183018 Q1622659 Q1421697 Q201252 Q177275 Q32112 Q14405929 Q1129021 Q1199515 Q178678 Q17988507 Q6350707 Q159992 Q3924425 Q3341285 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q12973014),P641,c(Q349))
action less
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action count
action filter_type
action find_reverse
entity Q2215841
relation P641
type Q12973014
Less number of sports teams participated in the [ANSWERS] than cycle sport
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P641 ?w . ?w rdf:type ontology:Q349 . ?y rdf:type ontology:Q12973014 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:Q12973014 . ?z property:P641 resource:Q2215841 } } . FILTER ( ?q < ?e ) }
college football beach volleyball long jump mixed martial arts fencing cross country running team time trial yachting croquet archery softball windsurfing motorcycle racing snocross rink bandy BASE jumping para rowing floorball squash Ultimate memory sport equestrian sport puroresu paintball Finswimming Camogie drag racing weightlifting Kettlebell lifting kung fu contract bridge women's boxing motorcycle sport professional wrestling Flying disc games climbing medley swimming judo giant slalom skiing dancesport Kabaddi women's basketball rallying rallycross golf shooting sport canoe polo natural track luge para-alpine skiing fistball stock car racing rackets wingsuit flying greyhound racing tug of war racquetball pair skating sumo wrestling pesäpallo Valencian pilota boxe roque shinty Gaelic football Harri-jasotze Dog agility powerlifting American handball discus throw Box lacrosse international draughts harness racing Aizkolaritza netball Broomball running motocross Basque pelota arena football paralympic athletics Adventure racing five-a-side football Olympic sport gymnastics Inline skating strength training water sport Contact sport track cycling competition aerobatics paralympic swimming gymnastics balkline and straight rail skating mountaineering football parkour Greco-Roman wrestling rhythmic gymnastics lacrosse touring car racing gliding relay race hurling Savate bowling wakeboarding strength athletics CP football table tennis jeu de paume Sledge hockey fell running skiing real tennis canoeing Indoor American football canoeing and kayaking Powerchair Football eventing K-1 Frisian handball Nordic combined Castell Goalball sport climbing women's association football wheelchair curling nine-ball polo swimming Kitō-ryū Valencian trinquet rodeo muggle quidditch air racing speed skiing Nordic walking bandy hockey Chilean rodeo pankration bobsleigh boxing high diving super giant slalom skiing formula racing kick boxing women's tennis Kalari surfing combined track and field events cue sports Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
Less number of sports teams participated in the BASE jumping, pesäpallo and floorball than cycle sport
BASE jumping pesäpallo floorball
action less
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action count
action filter_type
action find_reverse
entity cycle sport
relation sport
type sports team
[{'concept': 'sports team'}, 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:sport ?w . ?w rdf:type ontology:sport . ?y rdf:type ontology:sports_team } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ontology:sports_team . ?z property:sport resource:cycle_sport } } . FILTER ( ?q < ?e ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q809831
P101
Q502895
USER
Which person works in the domain of that sport ?
(c(Q502895),P101,Q809831)
action filter_type
action find_reverse
entity Q809831
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q809831']
SELECT DISTINCT ?s WHERE { ?s property:P101 resource:Q809831 . ?s rdf:type ontology:Q502895 }
BASE jumping
action filter_type
action find_reverse
entity BASE jumping
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'BASE jumping']
SELECT DISTINCT ?s WHERE { ?s property:field_of_work resource:BASE_jumping . ?s rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q206763
SYSTEM
Did you mean floorball ?
Q809831 Q1295867 Q206763
(c(Q502895),P101,Q809831) (c(Q502895),P101,Q1295867) (c(Q502895),P101,Q206763)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q809831'] [{'concept': 'Q502895'}, 'P101', 'Q1295867'] [{'concept': 'Q502895'}, 'P101', 'Q206763']
SELECT DISTINCT ?s WHERE { ?s property:P101 resource:Q809831 . ?s rdf:type ontology:Q502895 }
BASE jumping pesäpallo floorball
Did you mean floorball ?
floorball
[{'concept': 'common name'}, 'field of work', 'BASE jumping'] [{'concept': 'common name'}, 'field of work', 'pesäpallo'] [{'concept': 'common name'}, 'field of work', 'floorball']
SELECT DISTINCT ?s WHERE { ?s property:field_of_work resource:BASE_jumping . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant BASE jumping. Could you tell me the answer for that?
(c(Q502895),P101,Q809831)
Q809831
[{'concept': 'Q502895'}, 'P101', 'Q809831']
[{'concept': 'common name'}, 'field of work', 'BASE jumping']
[]
Q15294474
SYSTEM
Fred Fugen
Q15294474
(c(Q502895),P101,Q809831)
action filter_type
action find_reverse
entity Q809831
relation P101
type Q502895
[ANSWER] works in the domain of that sport
[{'concept': 'Q502895'}, 'P101', 'Q809831']
SELECT DISTINCT ?s WHERE { ?s property:P101 resource:Q809831 . ?s rdf:type ontology:Q502895 }
Fred Fugen
Fred Fugen works in the domain of that sport
Fred Fugen
action filter_type
action find_reverse
entity BASE jumping
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'BASE jumping']
SELECT DISTINCT ?s WHERE { ?s property:field_of_work resource:BASE_jumping . ?s rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q476028
P106 P21
Q502895
USER
Which people have a job as association football club and have the gender as male ?
AND((c(Q502895),P106,Q476028), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q476028
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q476028'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P106 resource:Q476028 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
male association football club
action filter_type
action intersection
action find_reverse
entity association football club
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football club'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:occupation resource:association_football_club . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
common name
Q2714476
SYSTEM
Jean Wauters
Q2714476
AND((c(Q502895),P106,Q476028), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q476028
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have a job as association football club and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q476028'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P106 resource:Q476028 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
Jean Wauters
Jean Wauters have a job as association football club and have the gender as male
Jean Wauters
action filter_type
action intersection
action find_reverse
entity association football club
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football club'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:occupation resource:association_football_club . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q624161
P366
Q349 Q3084961 Q1875621
USER
How many sports are the main uses of approximately the same number of product linings and aircraft classes as gliding ?
(c(Q3084961)|c(Q1875621),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q3084961
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
action count
action filter_multi_types
action find_reverse
entity Q624161
relation P366
type Q3084961
type Q1875621
[[{'concept': 'Q3084961'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:Q3084961 ) ( ontology:Q1875621 ) } . ?k rdf:type ?q } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P366 resource:Q624161 . { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:Q3084961 ) ( ontology:Q1875621 ) } } } } . FILTER ( ?m = ?n ) }
gliding
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type product lining
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
action count
action filter_multi_types
action find_reverse
entity gliding
relation use
type product lining
type aircraft class
[[{'concept': 'product lining'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:product_lining ) ( ontology:aircraft_class ) } . ?k rdf:type ?q } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:use resource:gliding . { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:product_lining ) ( ontology:aircraft_class ) } } } } . FILTER ( ?m = ?n ) }
[]
sport product lining aircraft class
SYSTEM
22
Q7856 Q5372 Q8418 Q1734 Q206989 Q14300548 Q183018 Q36908 Q500050 Q108429 Q624161 Q1345388 Q177275 Q206763 Q2736 Q61065 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q3084961)|c(Q1875621),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q3084961
action find_reverse_tuple_counts
relation P366
type Q349
type Q1875621
action count
action filter_multi_types
action find_reverse
entity Q624161
relation P366
type Q3084961
type Q1875621
[ANSWER]
[[{'concept': 'Q3084961'}, {'concept': 'Q1875621'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:Q3084961 ) ( ontology:Q1875621 ) } . ?k rdf:type ?q } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P366 resource:Q624161 . { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:Q3084961 ) ( ontology:Q1875621 ) } } } } . FILTER ( ?m = ?n ) }
rallying basketball handball volleyball shooting sport skating bandy mountaineering cross country running archery gliding greyhound racing bobsleigh floorball association football water sport tennis ice hockey climbing harness racing American football badminton
22
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type product lining
action find_reverse_tuple_counts
relation use
type sport
type aircraft class
action count
action filter_multi_types
action find_reverse
entity gliding
relation use
type product lining
type aircraft class
[[{'concept': 'product lining'}, {'concept': 'aircraft class'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?q ) { ( ontology:product_lining ) ( ontology:aircraft_class ) } . ?k rdf:type ?q } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:use resource:gliding . { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:product_lining ) ( ontology:aircraft_class ) } } } } . FILTER ( ?m = ?n ) }
[]