-- DBMS: sqlite
CREATE TABLE match_view (
    id INTEGER,
    league TEXT,
    season TEXT,
    match_api_id INTEGER,
    home_team TEXT,
    away_team TEXT,
    home_team_goal INTEGER,
    away_team_goal INTEGER,
    home_gk TEXT,
    home_center_back_1 TEXT,
    home_center_back_2 TEXT,
    home_right_back TEXT,
    home_left_back TEXT,
    home_midfield_1 TEXT,
    home_midfield_2 TEXT,
    home_midfield_3 TEXT,
    home_midfield_4 TEXT,
    home_second_forward TEXT,
    home_center_forward TEXT,
    away_gk TEXT,
    away_center_back_1 TEXT,
    away_center_back_2 TEXT,
    away_right_back TEXT,
    away_left_back TEXT,
    away_midfield_1 TEXT,
    away_midfield_2 TEXT,
    away_midfield_3 TEXT,
    away_midfield_4 TEXT,
    away_second_forward TEXT,
    away_center_forward TEXT,
    goal TEXT,
    card TEXT
);

INSERT INTO match_view (id, league, season, match_api_id, home_team, away_team, home_team_goal, away_team_goal, home_gk, home_center_back_1, home_center_back_2, home_right_back, home_left_back, home_midfield_1, home_midfield_2, home_midfield_3, home_midfield_4, home_second_forward, home_center_forward, away_gk, away_center_back_1, away_center_back_2, away_right_back, away_left_back, away_midfield_1, away_midfield_2, away_midfield_3, away_midfield_4, away_second_forward, away_center_forward, goal, card) VALUES (11698, 'Italy Serie A', '2011/2012', 1082979, 'Genoa', 'Catania', 3, 0, 'Sebastian Frey', 'Dario Dainelli', 'Kakha Kaladze', 'Cesare Bovo', 'Emiliano Moretti', 'Miguel Veloso', 'Cristobal Jorquera', 'Kevin Constant', 'Juraj Kucka', 'Rodrigo Palacio', 'Andrea Caracciolo', 'Mariano Andujar', 'Alessandro Potenza', 'Nicolas Federico Spolli', 'Giuseppe Bellusci', 'Ciro Capuano', 'Pablo Martin Ledesma', 'Francesco Lodi', 'Alejandro Daro Gomez', 'Marco Biagianti', 'Maxi Lopez', 'Gonzalo Bergessio', '<goal><value><comment>n</comment><stats><goals>1</goals><shoton>1</shoton></stats><event_incident_typefk>71</event_incident_typefk><elapsed>30</elapsed><player1>30991</player1><sortorder>0</sortorder><team>10233</team><id>1667227</id><n>19</n><type>goal</type><goal_type>n</goal_type></value><value><comment>n</comment><stats><goals>1</goals><shoton>1</shoton></stats><event_incident_typefk>71</event_incident_typefk><elapsed>35</elapsed><player1>30991</player1><sortorder>0</sortorder><team>10233</team><id>1667252</id><n>20</n><type>goal</type><goal_type>n</goal_type></value><value><comment>n</comment><stats><goals>1</goals><shoton>1</shoton></stats><event_incident_typefk>71</event_incident_typefk><elapsed>79</elapsed><player1>26522</player1><sortorder>0</sortorder><team>10233</team><id>1668236</id><n>22</n><type>goal</type><goal_type>n</goal_type></value></goal>', '<card><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>58</elapsed><card_type>y</card_type><player1>18816</player1><sortorder>0</sortorder><team>8530</team><n>21</n><type>card</type><id>1668055</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>66</elapsed><card_type>y</card_type><player1>39419</player1><sortorder>0</sortorder><team>10233</team><n>23</n><type>card</type><id>1668088</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>85</elapsed><card_type>y</card_type><player1>39304</player1><sortorder>0</sortorder><team>10233</team><n>18</n><type>card</type><id>1668390</id></value></card>'), (23281, 'Spain LIGA BBVA', '2012/2013', 1260119, 'Real Valladolid', 'Getafe CF', 2, 1, 'Dani Hernandez', 'Antonio Rukavina', 'Jesus Rueda', 'Marc Valiente', 'Mikel Balenziaga', 'Alvaro Rubio', 'Lluis Sastre', 'Patrick Ebert', 'Oscar Gonzalez', 'Daniel Larsson', 'Manucho', 'Jordi Codina', 'Juan Valera', 'Alberto Lopo', 'Federico Fernandez', 'Alexis', 'Xavier Torres', 'Borja Fernandez', 'Diego Castro', 'Abdelaziz Barrada', 'Angel Lafita', 'Francisco Alcacer', '<goal><value><comment>n</comment><stats><goals>1</goals><shoton>1</shoton></stats><event_incident_typefk>71</event_incident_typefk><elapsed>45</elapsed><player1>241825</player1><sortorder>0</sortorder><team>8305</team><id>2697046</id><n>24</n><type>goal</type><goal_type>n</goal_type></value><value><comment>n</comment><stats><goals>1</goals><shoton>1</shoton></stats><event_incident_typefk>71</event_incident_typefk><elapsed>68</elapsed><player1>25347</player1><sortorder>0</sortorder><team>10281</team><id>2697452</id><n>20</n><type>goal</type><goal_type>n</goal_type></value><value><comment>n</comment><stats><goals>1</goals><shoton>1</shoton></stats><event_incident_typefk>71</event_incident_typefk><elapsed>73</elapsed><player1>46808</player1><sortorder>0</sortorder><team>10281</team><id>2697506</id><n>26</n><type>goal</type><goal_type>n</goal_type></value></goal>', '<card><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>6</elapsed><card_type>y</card_type><player1>33586</player1><sortorder>0</sortorder><team>10281</team><n>21</n><type>card</type><id>2696517</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>55</elapsed><card_type>y</card_type><player1>38427</player1><sortorder>0</sortorder><team>8305</team><n>23</n><type>card</type><id>2697208</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>63</elapsed><card_type>y</card_type><player1>37451</player1><sortorder>0</sortorder><team>8305</team><n>25</n><type>card</type><id>2697353</id></value><value><comment>r</comment><stats><rcards>1</rcards></stats><event_incident_typefk>270</event_incident_typefk><elapsed>76</elapsed><card_type>r</card_type><player1>37479</player1><sortorder>0</sortorder><team>8305</team><n>22</n><type>card</type><id>2697587</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>87</elapsed><card_type>y</card_type><player1>40675</player1><sortorder>0</sortorder><team>10281</team><n>27</n><type>card</type><id>2697743</id></value></card>'), (10345, 'Italy Serie A', '2008/2009', 539725, 'Sampdoria', 'Fiorentina', 0, 1, 'Luca Castellazzi', 'Hugo Campagnaro', 'Pietro Accardi', 'Jonathan Bottinelli', 'Marius Stankevicius', 'Gennaro Delvecchio', 'Paolo Sammarco', 'Daniele Franceschini', 'Reto Ziegler', 'Claudio Bellucci', 'Antonio Cassano', 'Sebastian Frey', 'Gianluca Comotto', 'Per Kroeldrup', 'Alessandro Gamberini', 'Juan Vargas', 'Zdravko Kuzmanovic', 'Felipe Melo', 'Riccardo Montolivo', 'Mario Alberto Santana', 'Alberto Gilardino', 'Adrian Mutu', '<goal><value><comment>n</comment><stats><goals>1</goals><shoton>1</shoton></stats><event_incident_typefk>71</event_incident_typefk><elapsed>19</elapsed><player1>24507</player1><sortorder>0</sortorder><team>8535</team><id>536234</id><n>19</n><type>goal</type><goal_type>n</goal_type></value></goal>', '<card><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>3</elapsed><card_type>y</card_type><player1>33888</player1><sortorder>0</sortorder><team>8535</team><n>18</n><type>card</type><id>536213</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>15</elapsed><card_type>y</card_type><player1>42388</player1><sortorder>0</sortorder><team>9882</team><n>20</n><type>card</type><id>536281</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>15</elapsed><card_type>y</card_type><player1>18848</player1><sortorder>0</sortorder><team>9882</team><n>21</n><type>card</type><id>536284</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>70</elapsed><card_type>y</card_type><player1>39719</player1><sortorder>0</sortorder><team>8535</team><n>22</n><type>card</type><id>536710</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>83</elapsed><card_type>y</card_type><player1>24507</player1><sortorder>0</sortorder><team>8535</team><n>23</n><type>card</type><id>536803</id></value><value><comment>y</comment><stats><ycards>1</ycards></stats><event_incident_typefk>70</event_incident_typefk><elapsed>85</elapsed><card_type>y</card_type><player1>39311</player1><sortorder>0</sortorder><team>8535</team><n>24</n><type>card</type><id>536808</id></value></card>'), (495, 'Belgium Jupiler League', '2009/2010', 665368, 'Beerschot AC', 'Sporting Lokeren', 2, 1, 'Tomislav Pacovski', 'Philippe Clement', 'Pieterjan Monteyne', 'Kurt van Dooren', 'Martijn Monteyne', 'Bart Goor', 'Ivan Leko', 'Wim De Decker', 'Faris Haroun', 'Sherjill MacDonald', 'Bavon Tshibuabua', 'Boubacar Barry Copa', 'Olivier Doll', 'Frederic Dupre', 'Ibrahima Gueye', 'Hassan El Mouataz', 'Marcel MBayo,25', 'Mario Carevic', 'Tshilola Tshinyama Tiko', 'Sulejman Smajic', 'Tomislav Sokota', 'Dawid Janczyk', NULL, NULL), (15951, 'Poland Ekstraklasa', '2008/2009', 506602, 'Cracovia', 'Polonia Bytom', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);